Click here to Skip to main content
15,905,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to associate MFC with lex and yacc? Pin
chenbuaa20-Dec-04 16:40
chenbuaa20-Dec-04 16:40 
AnswerRe: how to associate MFC with lex and yacc? Pin
David Crow21-Dec-04 2:18
David Crow21-Dec-04 2:18 
GeneralResource related crash Pin
JWood20-Dec-04 13:30
JWood20-Dec-04 13:30 
GeneralRe: Resource related crash Pin
Ryan Binns20-Dec-04 17:01
Ryan Binns20-Dec-04 17:01 
GeneralDrawDragRect Pin
poiut20-Dec-04 10:51
poiut20-Dec-04 10:51 
GeneralRe: DrawDragRect Pin
JWood20-Dec-04 13:37
JWood20-Dec-04 13:37 
GeneralRe: DrawDragRect Pin
poiut22-Dec-04 6:29
poiut22-Dec-04 6:29 
QuestionWhy is my printed image blown up? Pin
giannibal20-Dec-04 9:49
giannibal20-Dec-04 9:49 
I'm trying to print an image with DrawImage (GDI+ library).

graphics.DrawImage(pImage, rfDraw, rfPic.X, rfPic.Y, rfPic.Width, rfPic.Height, UnitPixel);

The graphics object is constructed with a printer device context.

The <rect>rfPic rectangle is the source area to draw from, e.g. (0, 0, 1000, 800) pixels. The rfDraw rectangle is the destination area to draw to, e.g. (100, 100, 6100, 4900) pixels. On a 600 x 600 dpi printer, this should result in a 10 x 8 inch image.

However, the image is blown up to gigantic proportions, so I only see a small magnified portion of the image. Can someone tell me why?

Drawing to screen works fine (same code, different values). I tried other unit values, setting the page scale and a lot of other things. No luck.

Can someone help me please?

Thanks,
giannibal
GeneralHelp me with image displaying solutions Pin
Budric B.20-Dec-04 7:44
Budric B.20-Dec-04 7:44 
GeneralAlso... Pin
Budric B.20-Dec-04 7:49
Budric B.20-Dec-04 7:49 
GeneralRe: Also... Pin
Christian Graus20-Dec-04 9:45
protectorChristian Graus20-Dec-04 9:45 
GeneralRe: Help me with image displaying solutions Pin
Christian Graus20-Dec-04 9:43
protectorChristian Graus20-Dec-04 9:43 
GeneralRe: Help me with image displaying solutions Pin
Budric B.20-Dec-04 10:31
Budric B.20-Dec-04 10:31 
GeneralWindows Hook Pin
RedDragon2k20-Dec-04 5:13
RedDragon2k20-Dec-04 5:13 
GeneralRe: Windows Hook Pin
Michael Dunn20-Dec-04 7:17
sitebuilderMichael Dunn20-Dec-04 7:17 
GeneralRe: Windows Hook Pin
RedDragon2k20-Dec-04 7:30
RedDragon2k20-Dec-04 7:30 
GeneralRe: Windows Hook Pin
heman15420-Dec-04 9:27
heman15420-Dec-04 9:27 
GeneralRe: Windows Hook Pin
Shog920-Dec-04 12:35
sitebuilderShog920-Dec-04 12:35 
GeneralDoModal returns -1 Pin
AnsGe20-Dec-04 4:30
AnsGe20-Dec-04 4:30 
GeneralRe: DoModal returns -1 Pin
toxcct20-Dec-04 5:47
toxcct20-Dec-04 5:47 
GeneralRe: DoModal returns -1 Pin
David Crow20-Dec-04 6:16
David Crow20-Dec-04 6:16 
GeneralRe: DoModal returns -1 Pin
AnsGe20-Dec-04 6:55
AnsGe20-Dec-04 6:55 
GeneralRe: DoModal returns -1 Pin
David Crow20-Dec-04 8:12
David Crow20-Dec-04 8:12 
GeneralRe: DoModal returns -1 Pin
Michael Dunn20-Dec-04 7:25
sitebuilderMichael Dunn20-Dec-04 7:25 
GeneralRe: DoModal returns -1 Pin
AnsGe20-Dec-04 7:35
AnsGe20-Dec-04 7:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.