Platforms to show: All Mac Windows Linux Cross-Platform

Back to GM16BlobMBS class.

GM16BlobMBS.base64 as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The blob content as a string in Base64 format.
Example
dim b as new GM16BlobMBS("Hello")

MsgBox b.base64 // shows "SGVsbG8="

(Read and Write computed property)

GM16BlobMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Default constructor creating an empty blob object.

See also:

GM16BlobMBS.Constructor(data as memoryblock, offset as Integer, size as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Construct object with data, making a copy of the supplied data.

See also:

GM16BlobMBS.Constructor(data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Construct object with data, making a copy of the supplied data.
Example
// get some image data (e.g. from blob in database)
dim logo as Picture = LogoMBS(500)
dim jpegData as string = PictureToJPEGStringMBS(logo, 80)

// new image
Dim mp as new GM16ImageMBS
dim blob as new GM16BlobMBS(jpegData)

// read data from blob into this image object
mp.Read blob

// sometimes you need to explicit convert to RGB/RGBA
'mp.type = mp.TrueColorMatteType
Backdrop=mp.CombinePictureWithMask

See also:

GM16BlobMBS.Constructor(other as GM16BlobMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copy constructor (reference counted).

See also:

GM16BlobMBS.CopyMemory as memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a copy of the data as a memoryblock.

Returns nil on any error like low memory.

GM16BlobMBS.CopyString as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a copy of the data as a string.

GM16BlobMBS.Data as Ptr

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A memoryblock with the data from this blob.
Example
dim b as new GM16BlobMBS("Hello")

dim m as memoryblock = b.Data
MsgBox m.StringValue(0,5) // shows "Hello"

This is a memoryblock referencing the data of the blob. It has no size set. The memoryblock can only be used as long as the blob object exists. if you use it after you destroyed the blob object, you can crash you application.

GM16BlobMBS.Update(data as memoryblock, offset as Integer, size as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Replaces the content of this blob with a copy of the bytes in the memoryblock.

See also:

GM16BlobMBS.Update(data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method GraphicsMagick MBS GraphicsMagick Plugin 14.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Replaces the content of this blob with a copy of the bytes in the string.

Offset is zero based.

See also:

The items on this page are in the following plugins: MBS GraphicsMagick Plugin.


The biggest plugin in space...