Click here to Skip to main content
15,921,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblems with appending, copying usigned char* data ----Pls help Pin
ledallam20-Dec-04 19:28
ledallam20-Dec-04 19:28 
GeneralRe: Problems with appending, copying usigned char* data ----Pls help Pin
Jon Hulatt20-Dec-04 22:05
Jon Hulatt20-Dec-04 22:05 
Generalwebservice Pin
hou_12620-Dec-04 19:03
hou_12620-Dec-04 19:03 
QuestionCreating an ActiveX? Pin
dSolariuM20-Dec-04 18:41
dSolariuM20-Dec-04 18:41 
GeneralAbout CEdit::LineLength Pin
freehawk20-Dec-04 18:28
freehawk20-Dec-04 18:28 
GeneralRe: About CEdit::LineLength Pin
David Crow21-Dec-04 2:07
David Crow21-Dec-04 2:07 
Generalownderdraw Pin
Tripura.K20-Dec-04 18:21
Tripura.K20-Dec-04 18:21 
GeneralEncrypting Video File Data Pin
Naveed Shoaib20-Dec-04 18:19
Naveed Shoaib20-Dec-04 18:19 
GeneralRe: Encrypting Video File Data Pin
Antti Keskinen20-Dec-04 22:34
Antti Keskinen20-Dec-04 22:34 
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 

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.