flat assembler
Message board for the users of flat assembler.

Index > Windows > printing concept under win32

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 9182
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
i have a vague concept on how printing is perform through win32, any simple idea/resource for me?

assume, i got paper sized at 50mm(w) X 30mm(h), and i want to have a WYSIWUG region in my application, how should i proceed.

ok, since display is using pixel instead of mm, so maybe a proc to convert mm to px and px to mm.

but how to know how many pixel in 1 mm of printer paper? resolution?

or i miss anything else? please enlight me. thank you.
Post 08 Jan 2009, 09:27
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17716
Location: In your JS exploiting you and your system
revolution
In Windows a printer device can be used in the same way as any graphics device. Open a DC to it and start drawing. You can get the device capabilities (resolution/colours etc.) with GetDeviceCaps.
Post 12 Jan 2009, 07:45
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.