Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

JPEG2000MBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class JPEG MBS Images Plugin 15.4 Yes Yes Yes Yes No
Function: The class for compress/decompress of JPEG 2000 images.
dim file as FolderItem = GetFolderItem("test.jp2")
dim stream as BinaryStream = BinaryStream.Open(file)
dim data as string = stream.Read(stream.Length)

dim jp2 as new JPEG2000MBS
if jp2.InitDecompress(data) then
MsgBox str(jp2.Width)+" x "+str(jp2.Height)
end if
Currently only supports RGB, RGBA and Grayscale images.

Please note that Jasper library used here is not very memory efficient and may run out of memory with huge images.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

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

JavaVMMBS   -   JPEGExporterMBS

MBS Xojo Plugins