Platforms to show: All Mac Windows Linux Cross-Platform
Back to Picture class.
Picture.CopyBGRtoMemoryblockMBS(destination as memoryblock, offset as Integer, StartLine as Integer = 0, EndLine as Integer = -1, Yield as Integer = 0, DestRowBytes as Integer = 0) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Graphics & Pictures | MBS Picture Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success.
destination should not be nil.
offset should be 0 or bigger and is the start position in the memoryblock.
The function will crash if the memoryblock is too small. Needs picture.width*picture.height*3 bytes in the memoryblock.
Does not access the mask inside the image!
This method was written for speed, so the creation of the memoryblock is your part. You can of course reuse memoryblocks for batch processing images as long as the memoryblock is big enough.
StartLine and Endline define the range of source lines from picture. Range is from 0 to picture.height-1. if Endline is -1, we use picture.height-1 internally. Yield specifies how much CPU time is given to other threads. If yield = 0, we give no CPU time away. If yield is > 0, we yield every yield/60th second to other threads. If DestRowBytes is not zero, it specifies the bytes per row in the target memoryblock for each line.
The items on this page are in the following plugins: MBS Picture Plugin.