AddRegion with Pixel mode missing

Using GdPicture.NET in WPF application.
Post Reply
umueller
Posts: 6
Joined: Mon Dec 21, 2015 4:49 pm

AddRegion with Pixel mode missing

Post by umueller » Fri Jan 29, 2016 3:50 pm

Hi.

AddRegion is missing a pixel version in WPF??? You can get a pixel value by GetRectCoordinatesOnDocumentPixel but not draw them widh AddRegion.


Regards

UM

User avatar
Loïc
Site Admin
Posts: 5576
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: AddRegion with Pixel mode missing

Post by Loïc » Sat Jan 30, 2016 11:14 pm

Hi,

Nothing is really missing. If you want to convert inches to pixel just multiply the inch value by the axe resolution.

IE:

Code: Select all

int pixel = round(inches * resolution + 0.5);
With best regards,

Loïc

User avatar
Loïc
Site Admin
Posts: 5576
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: AddRegion with Pixel mode missing

Post by Loïc » Sat Jan 30, 2016 11:14 pm

Hi,

Nothing is really missing. If you want to convert inches to pixel just multiply the inch value by the axe resolution.

IE:

Code: Select all

int pixel = round(inches * resolution + 0.5);
With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest