Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » How must Alpha be managed ??
Re: How must Alpha be managed ?? [message #38534 is a reply to message #38533] Fri, 21 December 2012 22:31 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 736
Registered: November 2008
Location: France
Contributor
Hi Omari,

I'm not trying to draw empty rectangles or ellipstes.

What I'm trying to do is manage the Alpha value which gives the information about "how transparent it is" or "how opaque it is".

This I can do without any problem but I don't know what to put in alphaColor and alphaValue values :
ImageDraw iw(rect.Width(), rect.Height());
iw.Alpha().DrawRect(bandRect, GrayColor(e.alphaValue));
iw.Alpha().DrawEllipse(circleRect, GrayColor(e.alphaValue));
w.DrawImage( rect, iw , e.alphaColor);

in order to get the same result as if id did:
w.DrawImage(bandRect, e.bandStyle );

where bandStyle is an image containing RGBA pixels where ALPHA is not 255 nor 0

Look at the example I uploaded

[Updated on: Fri, 21 December 2012 22:32]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Clipping region
Next Topic: Painter and transformations
Goto Forum:
  


Current Time: Tue Jul 08 08:33:59 CEST 2025

Total time taken to generate the page: 0.06173 seconds