Is there a PI factor between MFC and Manged code ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I have an image, which has a size more than the A4 paper, so I want to take
a snapshot of this picture in slices and print. The drawing code is in MFC and
the printing is being done using C#.
I ran into the problem, where the picture size was coming too small, when
printing. I investigated it further and found that the picture is fitting
the Print
paper, only when I stretch the image size with a multification factor of PI.
So here is my StretchBlt which works fine.
StretchBlt(0,0,PI*w,PI*h,&drawDc,0,0,printWd,printHt,SRCCOPY);
w -> Image Width
h-> Image Height
printWd-> Snapshot Width
printHt -> Snapshot Height
Let me know, if anyone has experienced the similar problem or there is any
significance of PI here.

Thanks,

-Brajesh

.



Relevant Pages

  • Re: screenshots?
    ... > picture box in order to save it. ... As RECT) As Long ... Now your picture box will contain your form's snapshot. ... Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ...
    (comp.lang.basic.visual.misc)
  • Re: screenshots?
    ... >> picture box in order to save it. ... > lpRect As RECT) As Long ... > Now your picture box will contain your form's snapshot. ... > Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ...
    (comp.lang.basic.visual.misc)
  • Re: Pixane and Tkvideo compatibility
    ... Using "picture" option to make a snapshot, I want to save the result ... The problem is I am using the "etcl" interpreter, ... If you wish so, and tell me which platform you are working with, I may send you a link to download a snapshot release. ...
    (comp.lang.tcl)
  • Re: Directly Edit Mht Files WYSIWYG
    ... <<There is software that will produce basically a 'snapshot' of a website ... There is software that will produce basically a 'snapshot' of a website and let you add annotations to your picture of the site. ...
    (microsoft.public.office.misc)
  • Re: Sharp Aquos display problem with cable box
    ... The Comcast box I got is the Motorola ... has to do with how the picture displays. ... it was still in stretch. ... When you change from a 720p channel to a 1080i channel, ...
    (alt.tv.tech.hdtv)