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 » Community » Newbie corner » How do I alpha blend the image?
Re: How do I alpha blend the image? [message #46969 is a reply to message #46968] Tue, 04 October 2016 19:56 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
kurete wrote on Tue, 04 October 2016 13:40
I'm sorry for description is insufficient.

I want to alpha blend image in Paint in Ctrl.

For Example, I want to change DrawImage in Function that is alpha blend in under source code.

void ExmampleCtrl::Paint(Draw& w)
{
  w.DrawImage(0,0,Sample::Image() );→change alpha blend function 
};



Image already has alpha channel, so DrawImage will use standard alpha blending. More complex alpha bledning modes are not supported in Draw, because Draw is supposed to be lowest common denominator that allows HW acceleration on all targets.

If you need anything more fancy (like different blend function), you need to perform calculations in memory - which in fact is quite easy, as Image internals are easily accessible.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image to an SQLite blob windows 10
Next Topic: Question.
Goto Forum:
  


Current Time: Tue Jun 11 17:31:30 CEST 2024

Total time taken to generate the page: 0.01962 seconds