Skip to content

ImlDrawConstants

Flag combinations passed to the Style parameter of ListImage.Draw. Multiple flags can be Or-combined to compose render styles.

vb
' Draw a small icon with the focus rectangle overlaid:
ImageList1.ListImages("doc").Draw _
    PictureBox1.hDC, 0, 0, _
    ImlDrawTransparent Or ImlDrawFocus
MemberValueDescription
ImlDrawNormal1Render in the normal state (no overlays).
ImlDrawTransparent2Honour the image's mask / alpha --- transparent pixels stay transparent.
ImlDrawSelected4Render with the selection-color overlay (typically a blue tint).
ImlDrawFocus8Render with the focus-rectangle overlay (dotted border).
ImlDrawNoMask16Bypass the mask --- draw the entire bitmap including pixels that would normally be transparent.

See Also

twinBASIC and LOGO copyright of "WaynePhillipsEA" author