Kristian,

For the colour shadow effect (assuming you're running 16-bit colour) you could get the data from the screen where the shadow is to be applied, then lower each RGB value a littel it and copy it back to the screen.

You could also look at the copy options, on WinPaintBitmap or similar which might be able to and/or/nand things together.

Chris.

Kristian Austad wrote:

A couple of questions to the forum:

1) I'm using Stefan Stolz excellent pnojpeglibrary to display some images in my 
app. I thought it would be really cool to manually add a shadow-effect to the 
right and bottom of the images, so that the underlying text gets overshaded, 
much like a darken layer. I'm doing it now with a black rectangle, but it would 
look much better if the rectangle was shaded. Does anyone know of a trick to 
accomplish this? Would it be an insane amount of work, would I better forget 
about it?

2) Does anyone know how to remove the border around a custom graphical 
pushbutton? PilRCs PUSHBUTTON does not have the NOFRAME parameter (at least not 
my working version, think it's 3.1).

Thanks, anyone!





-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to