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 » Any function to draw gradient color?
Re: Any function to draw gradient color? [message #12045 is a reply to message #12039] Tue, 09 October 2007 15:27 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, no, Color is considerd a color only, no alpha involved (besides Null value).

Anyway, pixels of images are always RGBA structs - all you need is there...

Usually, you use ImageBuffer to make alpha things.

You can however use ImageDraw as well. The trick is that Alpha() method returns you another draw; everything you draw into R channel will become alpha of final Image. A little bit dirty, but cheap to implement and quite easy to use.

(But keep in mind that ImageDraw is generally just cheap solution for simple problems...)

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image zoom widget?
Next Topic: Bug in Picture Class
Goto Forum:
  


Current Time: Mon Apr 29 12:08:12 CEST 2024

Total time taken to generate the page: 0.01820 seconds