New topic: Transparant drawing?
<http://forums.realsoftware.com/viewtopic.php?t=38697> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message BrianOBrien Post subject: Transparant drawing?Posted: Tue Apr 19, 2011 7:50 pm Joined: Wed Jul 07, 2010 2:55 pm Posts: 299 Location: University Of Calgary, Faculty Of Medicine Is there a way to draw a bitmap with and alpha channel using the Graphics Class? _________________ If at first you don't succeed... Try REALBasic. Top DaveS Post subject: Re: Transparant drawing?Posted: Tue Apr 19, 2011 8:43 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 2928 Location: San Diego, CA yes.... you draw p.graphics.drawline would draw on the main layer p.mask.graphics.drawline would draw on the mask layer (normally here you would use shades of gray (from black to white) indicating varying levels of transparency _________________ Dave Sisemore MacPro, OSX 10.6.4 RB2009r5.1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top BrianOBrien Post subject: Re: Transparant drawing?Posted: Tue Apr 19, 2011 9:30 pm Joined: Wed Jul 07, 2010 2:55 pm Posts: 299 Location: University Of Calgary, Faculty Of Medicine Thanks Dave. Where p is a picture? I found this posting as well. http://forums.realsoftware.com/viewtopic.php?f=1&t=29300&hilit=RGBA Still I'm left with a doubt as to if this 50% grey is 50% transparent, i.e. will I still be able to see what is drawn underneath it or must I do the color blending myself? _________________ If at first you don't succeed... Try REALBasic. Top pbart Post subject: Re: Transparant drawing?Posted: Tue Apr 19, 2011 11:08 pm Joined: Sat Oct 10, 2009 6:40 am Posts: 245 You need to experiment and see. Using different levels of grey as the mask will give you different levels of transparency. You will be able to see the layer below it (blending is done for you), you may have experiment with shades of grey to get the desired level of transparency (depending on the color, brightness, saturation etc of the picture) _________________ Regards Paul Windows 7 32bit RB 2010 4.1 Top BrianOBrien Post subject: Re: Transparant drawing?Posted: Tue Apr 19, 2011 11:16 pm Joined: Wed Jul 07, 2010 2:55 pm Posts: 299 Location: University Of Calgary, Faculty Of Medicine Works great!!! Love the avatar pbart! _________________ If at first you don't succeed... Try REALBasic. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
