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

Previous items

PictureMBS.MappingFirstRow as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 17.2 Yes Yes Yes Yes No
Function: First row mapped in memory.
Notes:
Only for mapped images.
Value is -1 if no data is mapped in.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.MappingLastRow as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 17.2 Yes Yes Yes Yes No
Function: Last row mapped in memory.
Notes:
Only for mapped images.
Value is -1 if no data is mapped in.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.MappingRows as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 17.2 Yes Yes Yes Yes No
Function: Number of rows for mapping.
Notes:
For a mapped image how many rows fit in the mapping buffer.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.Memory as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Returns a memoryblock without size pointing to the current pixel buffer.
Notes:
Use only if IsMapping is false.
If size is -1, it's a memoryblock referencing the pixel data.
If size is >0, you got the original memoryblock used to allocate the memory.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.MemoryTarget as Memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 9.0 Yes Yes Yes Yes No
Function: If this picture stores its pixels in a memoryblock, you can access the memory block using this property.
Notes: (Read only property)

Feedback, Comments & Corrections

PictureMBS.Parent as PictureMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The parent PictureMBS object.
Notes:
One PictureMBS can reference the pixels of another PictureMBS. The parent is referenced in this property so it is not released.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.PixelSize as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The size of a pixel in bytes.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.PixelSize)
Notes:
For example:
1 for Gray
2 for Gray with Alpha
3 for RGB
4 for RGB with Alpha
(Read only property)

Feedback, Comments & Corrections

PictureMBS.RedOffset as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The internal offset for pixels in the red channel.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.RedOffset)
Notes: (Read and Write property)

Feedback, Comments & Corrections

PictureMBS.RowOffset as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The internal row offset.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
dim q as PictureMBS = p.ClipImage(10,10,80,80)

MsgBox str(q.width)+" x "+str(q.height)+" with row offset: "+str(q.RowOffset)
Notes:
Only used with clipping images.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.RowSize as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The size of one row in bytes.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.RowSize)
Notes:
Additional bytes may be needed per row for better alignment of the data.
Also using virtual memory functions requires alignment.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.Target as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The target picture.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)

window1.Backdrop = p.Target
Notes:
if this PictureMBS references the pixels of a REALbasic picture, this property keeps a reference to this target picture.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.TotalSize as Int64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The total size of this picture in bytes.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)

MsgBox str(p.TotalSize)
Notes:
The result is Height*RowSize.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.UnclippedHeight as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 14.3 Yes Yes Yes Yes No
Function: The height of the picture in pixels.
Notes:
Without clipping, the full height of the image.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.Valid as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: Whether this instance is a valid picture.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.Valid)
Notes:
Valid is false if the constructor failed to create a picture.
(Read only property)

Feedback, Comments & Corrections

PictureMBS.Width as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: The width of the picture in pixels.
Example:
dim l as Picture = LogoMBS(500)
dim p as new PictureMBS(l)
MsgBox str(p.Width)
Notes: (Read only property)

Feedback, Comments & Corrections

PictureMBS.YellowOffset as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 11.0 Yes Yes Yes Yes No
Function: The internal offset for pixels in the yellow channel.
Example:
dim p as new PictureMBS(100,100,PictureMBS.ImageFormatCMYK)
MsgBox str(p.YellowOffset)
Notes: (Read only property)

Feedback, Comments & Corrections

PictureMBS.YieldTicks as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Large Picture MBS Images Plugin 8.7 Yes Yes Yes Yes No
Function: How much time is given back to REALbasic for other ticks.
Example:
dim p as PictureMBS // your picture

p.YieldTicks=6 // only use 1/10th of a second
Notes:
If value is greater than zero, the application will yield to another RB thread after the given number of ticks have passed. 60 ticks are one second. Using a small value can slow down processing a lot while a big value keeps your application not responding to mouse clicks.
If you use this property with e.g. 6 as the value, you may also want to use this method in a thread so you can handle mouse events or let REALbasic redraw a progressbar.
(Read and Write property)

Feedback, Comments & Corrections

Previous items

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




Links
MBS Xojo Chart Plugins