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 » Painter and viewports
Re: Painter and viewports [message #43966 is a reply to message #43965] Mon, 01 December 2014 23:34 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
I think what is missing is :
// create an imagebuffer to paint inside
	ImageBuffer ib(sz);
	Upp::Fill( ib.Begin(), bckgColor, ib.GetLength() );   // ************ if the ImageBuffer is not filled, transparency gives garbage
	// place it on requested viewport
	BufferPainter bp(ib);


I stumbled accross the same problems when trying to use transparency in background with GraphCtrl (took me some time to figure it out ... and also needed an Upp bug correction)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Should RGBA have got 4 arguments constructor?
Next Topic: Simplest way to add jpg or png to a layout, for logos, image visble off/on for status, etc.
Goto Forum:
  


Current Time: Tue May 21 16:10:09 CEST 2024

Total time taken to generate the page: 0.01721 seconds