Platforms to show: All Mac Windows Linux Cross-Platform

GMPixelsMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class GraphicsMagick MBS GraphicsMagick Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates an empty pixels object.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim g as new GMImageMBS(f)
dim p as new GMPixelsMBS(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
  • 5 properties
    • property columns as Integer
    • property handle as Integer
    • property rows as Integer
    • property x as Integer
    • property y as Integer
  • 6 methods
    • method Constructor(Image as GMImageMBS)
    • method get(x as Integer, y as Integer, columns as Integer, rows as Integer) as Ptr
    • method getConst(x as Integer, y as Integer, columns as Integer, rows as Integer) as Ptr
    • method indexes as Ptr
    • method set(x as Integer, y as Integer, columns as Integer, rows as Integer) as Ptr
    • method sync

This class has no sub classes.


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


GMPathArgsMBS   -   GMTypeMetricMBS


The biggest plugin in space...