But I'm running on a monochrome device. So I need to draw in darker/lighter patterns.
Not colors.
--
Luc Le Blanc
Jeff Collett a �crit :
> The way I have done color is to create an color type, ex RGBColorType =
> ColorStruc = {0, 140, 140, 240};
> and a pointer, RBGColorType * pColorType = &RGBColorType;
> Convert from RBG to Index, anUnsignedChar = WinRGBToIndex( pColorType);
> Set the back color, WinSetBackColor(anUnsignedChar);
> Create a rectangle, set the size and extents that you want,, or a series
> of rects, and then fill it,
> WinFillRectangle( &rect, 0 );
> It will then color that area of the screen.
>
>
> Luc Le Blanc
> <[EMAIL PROTECTED]> To: "Palm Developer
> Forum" <[EMAIL PROTECTED]>
> Sent by: cc:
> [EMAIL PROTECTED] Subject: Drawing with WinFillLine
> .palmos.com
>
>
> 10/22/2003 10:44 AM
> Please respond to "Palm
> Developer Forum"
>
>
>
> I draw a bunch of segments with WinDrawLine. I already use
> WinDrawGrayLine to illustrate segments in error. Now I would like to
> draw the currently selected segment in a thick mode (on color devices, I
> use red...).
>
> I explored WinFillLine with WinSetPatternType, using darkGrayPattern and
> blackPattern, but all I get now is an empty window. Using WinGetPattern
> to check the pattern set by WinSetPatternType, I find the
> CustomPatternType is all 0s... likely leading to white lines.
>
> --
> Luc Le Blanc
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/