Bitmap print problem
-
I have some codes that print some words, lines and a bitmap to the printer. But everything printed fine except the bitmap even it works fine in print preview. Can you help me? Thanks:((
What's the problem ? Is the bitmap really tiny ? If so, you need to get the size of the printer DC and stretchblt your image onto it. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
What's the problem ? Is the bitmap really tiny ? If so, you need to get the size of the printer DC and stretchblt your image onto it. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
I have some codes that print some words, lines and a bitmap to the printer. But everything printed fine except the bitmap even it works fine in print preview. Can you help me? Thanks:((
-
I have some codes that print some words, lines and a bitmap to the printer. But everything printed fine except the bitmap even it works fine in print preview. Can you help me? Thanks:((
I expect that the bitmap is tiny on the print out? is this what is happening? if so it is because you are drawing the bitmap into a printing device context, in which case a much higher resolution is used, you need to use the CDC function StretchBlt() to draw the bitmap into a resolution equivalent rectangle which you will need to work out. So look up StretchBlt()on MSDN its is very simple.!! this function simply stretches the bits in the bitmap accordingly. Print preview probably works because it uses a screen DC just like what you are drawing on. P.S. I hope this is the problem you are getting, if not soz!! :-D
-
I expect that the bitmap is tiny on the print out? is this what is happening? if so it is because you are drawing the bitmap into a printing device context, in which case a much higher resolution is used, you need to use the CDC function StretchBlt() to draw the bitmap into a resolution equivalent rectangle which you will need to work out. So look up StretchBlt()on MSDN its is very simple.!! this function simply stretches the bits in the bitmap accordingly. Print preview probably works because it uses a screen DC just like what you are drawing on. P.S. I hope this is the problem you are getting, if not soz!! :-D
-
I expect that the bitmap is tiny on the print out? is this what is happening? if so it is because you are drawing the bitmap into a printing device context, in which case a much higher resolution is used, you need to use the CDC function StretchBlt() to draw the bitmap into a resolution equivalent rectangle which you will need to work out. So look up StretchBlt()on MSDN its is very simple.!! this function simply stretches the bits in the bitmap accordingly. Print preview probably works because it uses a screen DC just like what you are drawing on. P.S. I hope this is the problem you are getting, if not soz!! :-D