Xojo Conferences
XDCMay2019MiamiUSA

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

  • 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 GM16ImageMBS)
    • 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.


GM16PathArgsMBS   -   GM16TypeMetricMBS




Links
MBS FileMaker Plugins