Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, March 16, 2006 10:59:34 AM(UTC)

nlowrey  
nlowrey

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


 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, March 20, 2006 5:28:09 AM(UTC)

Amin  
Amin

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.054 seconds.