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

PictureMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Large Picture MBS LargePicture Plugin 8.7 Yes Yes Yes Yes No
Function: The MBS picture class for really large pictures.
Example:
dim fSource as FolderItem = SpecialFolder.Desktop.Child("test.png") // some png with alpha
dim oPNGInput as new PNGReaderMBS

If oPNGInput.OpenFile(fSource) Then
If oPNGInput.ApplyOptions(0) Then

dim imgSource as New PictureMBS(oPNGInput.Width, oPNGInput.Height, PictureMBS.ImageFormatRGBA)

' Read row by row the file and puts it in a PictureMBS instance

dim nMax as Integer = oPNGInput.Height - 1
For nInd as Integer = 0 To nMax
imgSource.RowInFormat(nInd, PictureMBS.ImageFormatRGBA, true) = oPNGInput.ReadRow()
Next

' show only alpha/mask channel
Backdrop=imgSource.AlphaChannel.CopyPicture

' show Picture without mask
Backdrop=imgSource.CopyPicture

' show picture with mask
Backdrop=imgSource.CopyPictureWithMask

End If
End If
Notes:
Using virtual memory you are only limited to hard disc space for swapping.

The REALbasic picture class is limited to 2 GB and to width/height being in platform specific ranges. This class works with pictures up to 100 million pixels width and 2 billion pixels height.

Feedback, Comments & Corrections

This class has no sub classes.

Some properties using for this class:

Some events for this class:

Some examples which use this class:


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


PictureMatrixMBS   -   PictureMinMaxMBS




Links
MBS Xojo PDF Plugins