Home > Back-end >  Pixel location label paper size print issue
Pixel location label paper size print issue

Time:10-30

I want to use the label printer to print label, the label size is 70 * 50, thermal paper, I first in a canvas painting image tag,
Complete:
Printer. BeginDoc;
Printer. Canvas. StretchDraw (r1, img1. Picture. Graphic);
Printer. EndDoc;

1: please R1 value equal to (Trect)?
2: the tag for 70 * 50, the corresponding img1 height to width is how many pixels, my computer is 1024 * 768 pixels,

Online, etc., thank you.

CodePudding user response:

Hurry! Online to find information and ask questions, at the same time!!

CodePudding user response:

Printed image, doesn't mean you is how old,
Image printing size agreed upon during the design of the report,

CodePudding user response:

The To babydog01:
I do not report, I just need to print out N more than 70 * 50 tags, labels by the content of the image. The canvas painting

CodePudding user response:

The unit is mm?
In view of the PS in the 6.99 CM X 5.01 CM is 198 X 142 pixels

CodePudding user response:

R1 value, should test, because the printer model, the boundary of the print is different also, according to the actual situation to adjust,
StretchDraw is the image automatically zoom, so the image bigger dots doesn't matter, does not affect the definition can be,

CodePudding user response:

Thank you, I also are studying, it's a pity that the printer is bad, is taking...

CodePudding user response:

Pixels per unit area associated with resolution, such as: resolution of 30 pixels/cm, 7 cm x 5 cm is 210 x150,
The resolution of the concrete for the printer is printing,

CodePudding user response:

I use the getdevicecaps (HDC, vertsize) returns the height to width of setting up the printer,
Getdevicecaps (HDC logpixelsx) back to 203 and 203 is the point of pixels per inch,
So, 70 mm=2.756 inch=2.756=560 * 203 pixels pixels,

Can that I painted image, with 560 pixels to paint?
The printer is out of order, temporarily can't test, dizzy dead.

  • Related