Older Newer
Tue, 10 Dec 2019 04:38:09 . . . . SyneRyder [First function definition]


Changes by last author:

Added:
= getSetPixelHeight =

== Syntax ==

int getSetPixelHeight(void)

== Return ==

The height of the SetPixel canvas in pixels.

== Description ==

Gets the height in pixels of the current SetPixel canvas.

== Example ==

<code>

%fml

ctl[0]: OWNERDRAW, Color=RGB(0,0,0), Size=(100,100)

ctl[7]: STATICTEXT, Text="", Pos=(*, 120)

OnFilterStart: {

// Get the size of the canvas

int width, height;

startSetPixel(0);

width = getSetPixelWidth();

height = getSetPixelHeight();

endSetPixel(0);

// Display the result

sprintf(str0, "Pixel Dimensions: %dx%d", width, height);

setCtlText(7, str0);

return false;

}

</code>

== See Also ==

endSetPixel, getSetPixelWidth, OWNERDRAW, startSetPixel