This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 16, 2006 10:59:34 AM(UTC)
Groups: Registered
Posts: 1
I create a bitmap that is 2550 w x 3300 height which is 8.5 x 11 at 300 dpi
Is there anyway to change the hdc xres and yres to reflect that it is 300 dpi instead of
96 dpi?
Sample idea of what I am trying to do
L_CreateBitmap RTF_LBMH, 1, PageWP, PageHP, 24, 1, 0, 0, 0, 0
L_FillBitmap RTF_LBMH, RGB(255, 255, 255)
Do
RTF_hDC = L_CreateLeadDC(RTF_LBMH)
Loop Until RTF_hDC <> 0
FORMATRANGE.rectRegion = RectDrawTo ' Area on page to draw to
FORMATRANGE.RectPage = RectPage ' Entire size of page
FORMATRANGE.mCharRange.firstChar = StartChar ' Start of text
FORMATRANGE.mCharRange.lastChar = EndChar ' End of the text
Debug.Print "start end", StartChar, EndChar
SendMessage RTB.hwnd, EM_FORMATRANGE, 1, FORMATRANGE
#2
Posted
:
Monday, March 20, 2006 5:28:09 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
The resolution of the created LEAD DC depends on the display settings.
To change it, you will have to change the system font size from the
advanced dialog of the Windows display properties.
However, this DPI value might be significant in many cases, because the
actual number of pixels in the image does not depend on it. It always
depends on the width and height of the bitmap itself.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.