IDrawContext

What it does

Represents the context of drawing. Allows you to draw elementary geometric objects by using scripts. The color is specified as a sequence of four bytes: 0x00BBGGRR, where the "BB" bite represents the blue color, the "GG" bite is the green color and the "RR" bite is the green color.

Methods

Definition Description
FillAlphaRect( rect : IShellRect, rgbColor : int, alpha : int ) Draws a filled rectangle with a specified level of transparency.
FillRect( rect : IShellRect, rgbColor : int ) Draws a filled rectangle of the specified color.
GetPixel( x : int, y : int ) : int Retrieves the pixel color (in RGB) by its coordinates.
Line( start : IPoint, end : IPoint, rgbColor : int ) Draws a line of the specified color connecting the "start" and "end" points.
Rect( rect : IShellRect, rgbColor : int ) Draws a rectangle with a frame of the specified color.
SetPixel( x : int, y : int, rgbColor : int ) : int Sets the color (in RGB) of the pixel with specified coordinates. Returns the previous color of the pixel (in RGB).

Properties

Name Type Access Description
Handle int Read-only The handle to the context (HDC)

4/12/2024 6:16:02 PM

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.