Platforms to show: All Mac Windows Linux Cross-Platform
Back to JPEG2000MBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Called automatically by destructor for you.
You can call it after you are done to free memory now.
JPEG2000MBS.Compress as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please use first InitCompress, than loop over rows and use SetRow to fill in data.
This method will compress image and set ImageData property.
Returns true on success and false on failure.
JPEG2000MBS.GetRow(Index as Integer, Row as MemoryBlock = nil) as MemoryBlock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If you pass in a memoryblock, we use it, else we create a new one.
So you can pass in memoryblock from last call to GetRow.
Returns nil in case of error.
JPEG2000MBS.InitCompress(Width as Integer, Height as Integer, BytesPerPixel as Integer, BytesPerRow as Integer = 0) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success or false on failure.
If BytesPerRow is zero, we calculate it based on BytesPerPixel and Width.
BytesPerPixel can be 1 for gray, 3 for RGB and 4 for RGBA.
Some examples using this method:
JPEG2000MBS.InitDecompress(ImageData as MemoryBlock) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success or false on failure.
BytesPerPixel is set to 1 for gray, 3 for RGB and 4 for RGBA.
Some examples using this method:
JPEG2000MBS.SetRow(Index as Integer, Row as MemoryBlock) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | JPEG | MBS Images Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success.
The items on this page are in the following plugins: MBS Images Plugin.