Platforms to show: All Mac Windows Linux Cross-Platform
GMBlobMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | GraphicsMagick | MBS GraphicsMagick Plugin | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Blob provides the means to contain any opaque data. It is named after the term "Binary Large OBject" commonly used to describe unstructured data (such as encoded images) which is stored in a database. While the function of Blob is very simple (store a pointer and and size associated with allocated data), the Blob class provides some very useful capabilities. In particular, it is fully reference counted just like the Image class.
The Blob class supports value assignment while preserving any outstanding earlier versions of the object. Since assignment is via a pointer internally, Blob is efficient enough to be stored directly in an STL container or any other data structure which requires assignment. In particular, by storing a Blob in an associative container (such as STL's 'map') it is possible to create simple indexed in-memory "database" of Blobs.
Magick++ currently uses Blob to contain encoded images (e.g. JPEG) as well as ICC and IPTC profiles. Since Blob is a general-purpose class, it may be used for other purposes as well.
- 3 properties
- 9 methods
- method Constructor
- method Constructor(data as memoryblock, offset as Integer, size as Integer)
- method Constructor(data as string)
- method Constructor(other as GMBlobMBS)
- method CopyMemory as memoryblock
- method CopyString as string
- method Data as Ptr
- method Update(data as memoryblock, offset as Integer, size as Integer)
- method Update(data as string)
This class has no sub classes.
Some methods using this class:
- GMImageArrayMBS.readImages(blob as GMBlobMBS)
- GMImageArrayMBS.writeImages(blob as GMBlobMBS, adjoin as boolean = true)
- GMImageMBS.Constructor(blob as GMBlobMBS)
- GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS)
- GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, depth as UInt32)
- GMImageMBS.Constructor(blob as GMBlobMBS, geometry as GMGeometryMBS, Magick as string)
- GMImageMBS.read(blob as GMBlobMBS)
- GMImageMBS.read(blob as GMBlobMBS, size as GMGeometryMBS, depth as Integer)
- GMImageMBS.read(blob as GMBlobMBS, size as GMGeometryMBS, depth as Integer, magick as string)
- GMImageMBS.write(blob as GMBlobMBS, magick as string, depth as UInt32)
Some properties using for this class:
- GMImageMBS.iccColorProfile as GMBlobMBS
- GMImageMBS.iptcProfile as GMBlobMBS
- GMImageMBS.profile(name as string) as GMBlobMBS
Some examples using this class:
- /GraphicsMagick/GraphicsMagick/Console Text Drawing/Draw text in Console
- /GraphicsMagick/GraphicsMagick/SVG Test/SVG Rastor
- /GraphicsMagick/GraphicsMagick/Test Rotating
- /Images/PNG/PNG Load To MemoryBlocks
Blog Entries
The items on this page are in the following plugins: MBS GraphicsMagick Plugin.
GM16UnsupportedExceptionMBS - GMCoderInfoMBS