raster Image(bitmap)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alarock
    New Member
    • Jan 2008
    • 14

    raster Image(bitmap)

    hi,
    I have performed some drawing using Vector image,DrawRecta ngle etc... and then i converted to raster Image(bitmap)
    i found in the zoomed raster image(bitmap) the outer boundary of the raster image(bitmap) is blurry. i used Interpolation mode,smoothing mode,,and tried a lot ..... i cant able to solve this problem in C#...Please help me to solve this......


    Regards,
    alarock(algates )
  • pootle
    New Member
    • Apr 2008
    • 68

    #2
    Originally posted by alarock
    hi,
    I have performed some drawing using Vector image,DrawRecta ngle etc... and then i converted to raster Image(bitmap)
    i found in the zoomed raster image(bitmap) the outer boundary of the raster image(bitmap) is blurry. i used Interpolation mode,smoothing mode,,and tried a lot ..... i cant able to solve this problem in C#...Please help me to solve this......


    Regards,
    alarock(algates )

    Hi

    Which DrawImage method do you use?

    Regards

    Comment

    • alarock
      New Member
      • Jan 2008
      • 14

      #3
      Originally posted by pootle
      Hi

      Which DrawImage method do you use?

      Regards

      onPaint(paintEv entArgs pe)
      {
      Graphics GrfxView=pe.Cre ateGraphics();
      GrfxView.DrawIm age(Bitmap, this.AutoScroll Position.X, this.AutoScroll Position.Y, this.AutoScroll MinSize.Width, this.AutoScroll MinSize.Height) ;
      }

      Comment

      • pootle
        New Member
        • Apr 2008
        • 68

        #4
        Originally posted by alarock
        onPaint(paintEv entArgs pe)
        {
        Graphics GrfxView=pe.Cre ateGraphics();
        GrfxView.DrawIm age(Bitmap, this.AutoScroll Position.X, this.AutoScroll Position.Y, this.AutoScroll MinSize.Width, this.AutoScroll MinSize.Height) ;
        }
        Your image may be suffering from anti-aliasing (jaggie). Try playing with some of the graphics attributes, e.g.

        GrfxView.Interp olationMode = InterpolationMo de.HighQualityB icubic;
        GrfxView.Smooth ingMode = SmoothingMode.H ighQuality;
        GrfxView.PixelO ffsetMode = PixelOffsetMode .HighQuality;
        GrfxView.Compos itingQuality = CompositingQual ity.HighQuality ;

        You might need to play around to achieve a reasonable result.

        HTH

        Comment

        • alarock
          New Member
          • Jan 2008
          • 14

          #5
          Originally posted by pootle
          Your image may be suffering from anti-aliasing (jaggie). Try playing with some of the graphics attributes, e.g.

          GrfxView.Interp olationMode = InterpolationMo de.HighQualityB icubic;
          GrfxView.Smooth ingMode = SmoothingMode.H ighQuality;
          GrfxView.PixelO ffsetMode = PixelOffsetMode .HighQuality;
          GrfxView.Compos itingQuality = CompositingQual ity.HighQuality ;

          You might need to play around to achieve a reasonable result.

          HTH
          I have already used these but till it does not solve my problem,,,,

          Comment

          Working...