Draw an (extended) Intuition Image with special visual state.
Source position: intuition.pas line 3290
procedure DrawImageState( |
Rp: PRastPort; |
Image: PImage; |
LeftOffset: LongInt; |
TopOffset: LongInt; |
state: LongWord; |
DrawInfo: PDrawInfo |
); |
Rp |
|
RastPort for rendering |
Image |
|
A pointer to a (preferably custom) image |
LeftOffset |
|
Left positional offsets in pixels |
TopOffset |
|
Top positional offsets in pixels |
state |
|
Visual state selected from above |
DrawInfo |
|
A pointer to packed of pen selections and resolution. |
This function draws an Intuition Image structure in a variety of "visual states", these include:
Only IDS_NORMAL will make sense for traditional Image structures, this function is more useful when applied to new custom images or "object-oriented image classes."
Each class of custom images is responsible for documenting which visual states it supports, and you typically want to use images which support the appropriate states with your custom gadgets.
The DrawInfo parameter provides information invaluable to "rendered" images, such as pen color and resolution. Each image class must document whether this parameter is required.
|
Draw the specified Image structure into a RastPort. |
|
|
Get pointer to rendering information. |