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

GM16PixelsMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class GraphicsMagick MBS GraphicsMagick Plugin 14.1 Yes Yes Yes Yes No
Function: Creates an empty pixels object.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim g as new GM16ImageMBS(f)
dim p as new GM16PixelsMBS(g)

// get pointer to some pixels to read/write
dim x as ptr = p.get(0, 0, 100, 100)

// draw a red line to the pixel buffer
dim o as Integer
for i as Integer = 0 to 99
o = 100 * i + i
x.UInt32(o * 4) = &hFFFF0000
next

// write back
p.sync

// show
window1.Backdrop = g.CopyPicture

Feedback, Comments & Corrections

This class has no sub classes.


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


GM16PathArgsMBS   -   GM16TypeMetricMBS




Links
MBS Xojo blog