U++ framework
Do not panic. Ask here before giving up.

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: 740
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 Sep 15 21:23:50 GMT+2 2026

Total time taken to generate the page: 0.00536 seconds