Platforms to show: All Mac Windows Linux Cross-Platform

Back to PictureWriterMBS class.

PictureWriterMBS.BlueOffset as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The platform dependend offset of the blue channel in the RGB data.

A value between 0 and 3.
(Read only property)

PictureWriterMBS.BytesPerPixel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Number of bytes per pixel.

Most times 4, but for some platforms 3.
(Read only property)

PictureWriterMBS.Data as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The memoryblock with the original image data.

Changes here will be visible in the picture.
This memoryblock has a size property with value 0!
No bound checking can be done by Xojo on this memoryblock.
Returns nil for console pictures.
(Read only property)

See also:

PictureWriterMBS.DataCopy as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Copies the data for the current picture into a new memoryblock.

Changes to this memoryblock will not be visible in the rendered picture.
(Read only property)

PictureWriterMBS.DataPtr as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The memory address where the data is stored.

Maybe useful for declares.
Returns nil for console pictures.
(Read only property)

PictureWriterMBS.GreenOffset as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The platform dependend offset of the green channel in the RGB data.

A value between 0 and 3.
(Read only property)

PictureWriterMBS.HasAlphaChannel as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 14.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Whether an alpha channel exists.
Example
dim p as PictureWriterMBS = NewPictureWriterMBS(200, 200, true)

MsgBox "Alpha: "+str(p.HasAlphaChannel)

// get pointer to bytes
dim m as MemoryBlock = p.Data

// fill all with 127
m.FillBytesMBS 0, p.RowBytes * p.Height, 127

dim x as Picture = p.Render
Break

(Read only property)

PictureWriterMBS.Height as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The height of the image in pixels.

(Read only property)

PictureWriterMBS.Picture as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The buffer picture reference.

If the writer uses a RB picture as buffer it is available here.
(depends on the actual implementation for a given platform whether this property is used)
(Read only property)

PictureWriterMBS.RedOffset as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The platform dependend offset of the red channel in the RGB data.

A value between 0 and 3.
(Read only property)

PictureWriterMBS.RowBytes as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The width of an image row in bytes.

RowBytes can be width*bytesPerPixel, but often it is not.
(Read only property)

PictureWriterMBS.Width as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Graphics & Pictures MBS Picture Plugin 6.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
The width of the image in pixels.

(Read only property)

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


The biggest plugin in space...