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 » U++ Core » ImageDraw not available in Draw
Re: ImageDraw not available in Draw [message #53139 is a reply to message #53138] Sat, 07 March 2020 17:14 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Hi,

yes, ImageDraw is not in Draw.

The reason is following: ImageDraw must 100% match the screen rendering, to the point that if you draw something on the screen and with ImageDraw, then put ImageDraw on screen, results must 100% match. This is e.g. required for backdrawing.

That means ImageDraw needs to use same host-platform drawing routines as SystemDraw (e.g. GDI32 in Win32), which implies that it needs to be implemented in CtrlCore as Draw is supposed to be GUI/Host independent, pure virtual...

Anyway, solution to your problem is trivial. If you for some reason do not want to use Painter / ImagePainter, you have SImageDraw class in Draw package which is basically reimplementing all primitives in U++ code...

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: Vector& Vector::operator<<(T&& x) is missing
Next Topic: DeepCopyOption do_clone inconsistancy?
Goto Forum:
  


Current Time: Fri Jun 13 12:10:05 CEST 2025

Total time taken to generate the page: 0.04827 seconds