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 » Draw::DrawImageOp optimization bug
Re: Draw::DrawImageOp optimization bug [message #19435 is a reply to message #19434] Wed, 03 December 2008 15:36 Go to previous messageGo to previous message
Tom1
Messages: 1216
Registered: March 2007
Senior Contributor
Mirek,

One more thing: GetPagePixels returns the size as 600 dpi dots now even in the native mode. It would be very helpful if it returned the pixels according to the current addressing mode, i.e. native or dots mode.

Update: Also, would it be possible to return the currently effective DPI by the GetPixelsPerInch() in the same way? This would simplify using the same code for both printing and screen view.

Update 2: The code required for these:

Draw.h, Add/Change:
Size   pageDots;

Size  GetPagePixels() const { return native?pagePixels:pageDots; }
Size  GetPixelsPerInch() const { return native?nativeDpi:inchPixels; }


DrawWin32.cpp, Change:

void Draw::LoadCaps() {
...
pageDots = pagePixels = GetSizeCaps(HORZRES, VERTRES);
...
}

...

void PrintDraw::InitPrinter()
{
...
pageDots.cx = 600 * pagePixels.cx / nativeDpi.cx; 
pageDots.cy = 600 * pagePixels.cy / nativeDpi.cy; 
...
}


// Tom

[Updated on: Wed, 03 December 2008 17:28]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Extensions to Draw...Ops
Next Topic: Compile package with iml file problem!
Goto Forum:
  


Current Time: Sat May 18 02:38:24 CEST 2024

Total time taken to generate the page: 0.01985 seconds