[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Transparent bound for polygon window draw
From: ####@####.#### ####@####.#### Date: 9 Nov 2006 06:46:22 +0000 Message-Id: <1163054846.2771.13.camel@fc5> Dear All, I want to draw a polygon window like tux. After studied tux.c I found a way to do that, it's using a GrNewBitmapRegion to mask the visible region. The mask data tuxmask_bits was generated by convbmp. But since my background image can be change by user(it's a skin). So, the mask data must be generated up to user's skin image when the program loading the skin. So, any other easy way to do that? Or how can I generate a mask data in my program according user's BMP? Any ideas from you? Thanks! Alex | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Transparent bound for polygon window draw
From: ####@####.#### ####@####.#### Date: 9 Nov 2006 08:05:46 +0000 Message-Id: <1163059603.2771.16.camel@fc5> :) I have got the way, just use GrNewRegionFromPixmap to load a mask bmp. It works! On Thu, 2006-11-09 at 14:47 +0800, ####@####.#### wrote: > Dear All, > > I want to draw a polygon window like tux. After studied tux.c I found a > way to do that, it's using a GrNewBitmapRegion to mask the visible > region. The mask data tuxmask_bits was generated by convbmp. > But since my background image can be change by user(it's a skin). So, > the mask data must be generated up to user's skin image when the program > loading the skin. > So, any other easy way to do that? Or how can I generate a mask data in > my program according user's BMP? > Any ideas from you? Thanks! > > Alex | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |