DrawLineFrame

native static void DrawLineFrame(Color color, int x0, int y0, int w, int h, int thickness = 1)

Note: This feature is for ZScript only.

Screen

Usage

Draws a line frame around the given bounding box with the specified line thickness. Coordinates are absolute and start from the top left of the screen with positive x values shifting to the right and positive y values shifting downward.

Parameters

  • color - The color to use for the line
  • x0 - The x coordinate to start drawing from
  • y0 - The y coordinate to start drawing from
  • w - The width of the bounding box
  • h - The height of the bounding box
  • thickness - How thick the line should be in pixels

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.