Is there a PI factor between MFC and Manged code ?
- From: DotNetBBK <DotNetBBK@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 18 Aug 2005 19:10:03 -0700
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
.
- Follow-Ups:
- Re: Is there a PI factor between MFC and Manged code ?
- From: Bob Powell [MVP]
- Re: Is there a PI factor between MFC and Manged code ?
- Prev by Date: Re: Accessing individual pages in TIFF file
- Next by Date: Re: Uniting two bitmaps
- Previous by thread: Accessing individual pages in TIFF file
- Next by thread: Re: Is there a PI factor between MFC and Manged code ?
- Index(es):
Relevant Pages
|