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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Printing issues
Printing issues [message #19430] Wed, 03 December 2008 12:17
mirek is currently offline  mirek
Messages: 11701
Registered: November 2005
Ultimate Member
I have added a couple of methods to support "native resolution" printing (in Win32, in Posix printing goes through PDF anyway).

bool IsNative() const { return native; }

void BeginNative();
void EndNative();

After BeginNative, mapping is 1:1 to printer pixels.

Size GetNativeDpi() const;
int GetNativeX(int x) const;
int GetNativeY(int x) const;
void Native(int& x, int& y) const;
void Native(Point& p) const;
void Native(Size& sz) const;
void Native(Rect& r) const;

These methods convert from dots to native pixels.

Mirek
Previous Topic: 'Insert'
Next Topic: Relatively massive C++ parser and Assist++ refactoring...
Goto Forum:
  


Current Time: Tue Feb 19 10:33:12 CET 2019

Total time taken to generate the page: 0.00551 seconds