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

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: 14290
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: Sat Apr 25 09:29:27 GMT+2 2026

Total time taken to generate the page: 0.00493 seconds