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

%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;
}

See Also

endSetPixel, getSetPixelWidth, OWNERDRAW, startSetPixel