Re: DrawImage with High DPI Still Pixelated?

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



what is the original DPI of the image you are recieving? Perhaps you are
changing it, and that is causing the blurriness?

(Note: I am making guesses here and just trying to help. Hopefully someone
more knowledgable will be along to help as well)


"Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:40353930-BDBC-4B9B-BC99-7FB190A01E92@xxxxxxxxxxxxxxxx
>I receive an image from another application to which I want to print. I
>pass
> them a Bitmap with a DPI of 600x600. I take that image and draw it into
> the
> graphics object when I print. Their text that they draw into the Bitmap
> that
> I pass them comes out blury. Please note that its not blury when I
> display
> it on the screen. So my issue is the text quality in the image that I
> draw
> into the DC when printing. I even had them turn off anti-aliasing, but it
> looked real bad when doing that.
>
> Any ideas?
>
> - Craig
>
> "Rick Mogstad" wrote:
>
>>
>> "Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:73A906E0-91A9-4556-8DFE-4CACE12B5A5A@xxxxxxxxxxxxxxxx
>> > Hi All,
>> >
>> > I get a lot of pixelation (bluriness) when I draw an image into a
>> > graphics
>> > object that is passed to the Paint event handler when I perform a
>> > print.
>> > The
>> > image that I am using has a DPI of 600x600 (same as the printer) with
>> > some
>> > text. When it prints the image, the text is blury. Now if I draw the
>> > same
>> > text with the DrawString method into the received graphics object, the
>> > text
>> > is real crisp.
>> >
>> > Why is the image blury if it has the same DPI as the graphics object
>> > for
>> > the
>> > printer? Am I missing something? I am using Framework 1.1 with the
>> > latest
>> > SP, and Visual Studio 2003 on Windows XP.
>> >
>> > Here is what I use to draw the image into the graphics object:
>> >
>> > primaryGraphics.DrawImage(myImage, myRect, 0, 0, myImage.Width,
>> > myImage.Height, GraphicsUnit.Pixel);
>> >
>> > Any ideas on what I am doing wrong here? Thanks!
>> >
>> >
>> > Craig
>>
>>
>> You have your text saved as an image, or? I am not sure how DrawImage
>> and
>> DrawString are really related, as they perform different functions.
>>
>>
>>
>>


.



Relevant Pages

  • Re: DrawImage with High DPI Still Pixelated?
    ... them a Bitmap with a DPI of 600x600. ... I take that image and draw it into the ... I pass them comes out blury. ... >> text with the DrawString method into the received graphics object, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: DrawImage with High DPI Still Pixelated?
    ... > I actually create the Bitmap object my self and pass it to their method. ... I even bypassed their code and created a graphics object from the ... Their text that they draw into the Bitmap ... Please note that its not blury when I ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: DrawImage with High DPI Still Pixelated?
    ... I actually create the Bitmap object my self and pass it to their method. ... They create a graphics object from that Bitmap and peform drawing operations ... Their text that they draw into the Bitmap ... Please note that its not blury when I ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Drawing a string
    ... why don't you ditch the picturebox and do all the painting in the ... OnPaint method of your form, get the graphics object you are passed, draw ... > like the picture box is in front of the string I've drawn. ...
    (microsoft.public.dotnet.framework.compactframework)
  • text in gdi+
    ... I have a position BasePoson a graphics object that I would like to ... that it is draw at to be rotated/scaled. ... required transformations to, then draw my text to that. ... you can then rotate/scale these groups. ...
    (microsoft.public.win32.programmer.gdi)