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 » Get an Image from a DrawingDraw
Get an Image from a DrawingDraw [message #34113] Thu, 20 October 2011 01:35 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

I would like to get an Image from a DrawingDraw using only #include <Draw/Draw.h>.

DrawingDraw idraw(size);
idraw.DrawRect(size, Red());
	
Image img = CoolFunction(idraw.GetResult());

Is it possible?


Best regards
Iñaki
Re: Get an Image from a DrawingDraw [message #34167 is a reply to message #34113] Wed, 26 October 2011 08:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Wed, 19 October 2011 19:35

Hello all

I would like to get an Image from a DrawingDraw using only #include <Draw/Draw.h>.

DrawingDraw idraw(size);
idraw.DrawRect(size, Red());
	
Image img = CoolFunction(idraw.GetResult());

Is it possible?


No. You have to use Painter... (but generally, the code will be the same).

DrawingDraw is 'defined' as using host GUI drawing capabilities.

Mirek
Re: Get an Image from a DrawingDraw [message #34171 is a reply to message #34167] Thu, 27 October 2011 18:40 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Ok.

mirek wrote on Wed, 26 October 2011 08:26

koldo wrote on Wed, 19 October 2011 19:35

Hello all

I would like to get an Image from a DrawingDraw using only #include <Draw/Draw.h>.

DrawingDraw idraw(size);
idraw.DrawRect(size, Red());
	
Image img = CoolFunction(idraw.GetResult());

Is it possible?


No. You have to use Painter... (but generally, the code will be the same).

DrawingDraw is 'defined' as using host GUI drawing capabilities.

Mirek



Best regards
Iñaki
Previous Topic: Graphic primitives tree in Painter
Next Topic: Draw sharp lines using Painter
Goto Forum:
  


Current Time: Thu Mar 28 14:25:23 CET 2024

Total time taken to generate the page: 0.01467 seconds