Platforms to show: All Mac Windows Linux Cross-Platform

Back to JPEG2000MBS class.

JPEG2000MBS.Decode(Data as MemoryBlock) as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method JPEG MBS Images Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decodes a JPEG 2000 images.
Example
dim p as Picture = LogoMBS(200)

dim j80 as MemoryBlock = JPEG2000MBS.Encode(p, 80)
dim p80 as Picture = JPEG2000MBS.Decode(j80)

window1.Backdrop = p80

Returns on success the picture object.
Can raise exception if data is invalid.

See also:

JPEG2000MBS.Decode(Data as string) as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method JPEG MBS Images Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Decodes a JPEG 2000 images.

Returns on success the picture object.
Can raise exception if data is invalid.

See also:

JPEG2000MBS.Encode(pic as picture, Quality as Integer = 80) as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method JPEG MBS Images Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Encodes a picture as JPEG 2000 image.
Example
dim p as Picture = LogoMBS(200)

dim j80 as MemoryBlock = JPEG2000MBS.Encode(p, 80)
dim p80 as Picture = JPEG2000MBS.Decode(j80)

window1.Backdrop = p80

Returns image data on success or nil on failure.

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


The biggest plugin in space...