JPEG2000MBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem