System.Drawing.Graphics ignores InterpolationMode

View: New views
4 Messages — Rating Filter:   Alert me  

System.Drawing.Graphics ignores InterpolationMode

by Jonathan Resnick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When using the System.Drawing.Graphics class, I set the the property InterpolationMode to InterpolationMode.NearestNeighbor.  However, the image rendered to the screen still looks as though it has undergone bilinear interpolation.  Running the exact same code on .NET runtime in Windows, the image is clearly not interpolated.
 
Does anyone know if this is a bug (in which case I can submit a bug report), or is the InterpolationMode property simply not yet supported on Linux?
 
Thanks,
Jonathan

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Parent Message unknown Re: System.Drawing.Graphics ignores InterpolationMode

by Peter Dennis Bartok :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Funny, this bug complains about the opposite, that only NearestNeighbor is
used.

http://bugzilla.ximian.com/show_bug.cgi?id=77181

Cheers,
  Peter

-----Original Message-----
From: "Jonathan Resnick" <jresnick@...>
To: "'mono-devel mailing list'" <mono-devel-list@...>
Date: 22 February, 2006 13:57
Subject: [Mono-dev] System.Drawing.Graphics ignores InterpolationMode


>When using the System.Drawing.Graphics class, I set the the property
>InterpolationMode to InterpolationMode.NearestNeighbor.  However, the image
>rendered to the screen still looks as though it has undergone bilinear
>interpolation.  Running the exact same code on .NET runtime in Windows, the
>image is clearly not interpolated.
>
>Does anyone know if this is a bug (in which case I can submit a bug
>report),
>or is the InterpolationMode property simply not yet supported on Linux?
>
>Thanks,
>Jonathan
>

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Re: System.Drawing.Graphics ignores InterpolationMode

by Onelook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have similar problem. All resized (downsampled) images by this code:
https://bugzilla.novell.com/attachment.cgi?id=169051
have very low quality in compare with MS .NET Framework. How can I generate good quality thumbnails in Mono?

Thanks,
Onelook


Jonathan Resnick wrote:
When using the System.Drawing.Graphics class, I set the the property
InterpolationMode to InterpolationMode.NearestNeighbor.  However, the image
rendered to the screen still looks as though it has undergone bilinear
interpolation.  Running the exact same code on .NET runtime in Windows, the
image is clearly not interpolated.
 
Does anyone know if this is a bug (in which case I can submit a bug report),
or is the InterpolationMode property simply not yet supported on Linux?
 
Thanks,
Jonathan

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Re: System.Drawing.Graphics ignores InterpolationMode

by Sebastien Pouliot-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Cairo, on which libgdiplus depends for graphics, has much
less interpolation options than MS GDI+ defines in its API. So
libgdiplus maps "many to few" options in this case.

Cairo is also known not to downscale images very well (but some Cairo
people are looking at this). Google cairo's mailing-list if you want to
know more about the issues.

Sebastien

On Thu, 2008-09-04 at 06:06 -0700, Onelook wrote:

> I have similar problem. All resized (downsampled) images by this code:
> https://bugzilla.novell.com/attachment.cgi?id=169051
> have very low quality in compare with MS .NET Framework. How can I generate
> good quality thumbnails in Mono?
>
> Thanks,
> Onelook
>
>
>
> Jonathan Resnick wrote:
> >
> > When using the System.Drawing.Graphics class, I set the the property
> > InterpolationMode to InterpolationMode.NearestNeighbor.  However, the
> > image
> > rendered to the screen still looks as though it has undergone bilinear
> > interpolation.  Running the exact same code on .NET runtime in Windows,
> > the
> > image is clearly not interpolated.
> >  
> > Does anyone know if this is a bug (in which case I can submit a bug
> > report),
> > or is the InterpolationMode property simply not yet supported on Linux?
> >  
> > Thanks,
> > Jonathan
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list@...
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
> >
>

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@...
http://lists.ximian.com/mailman/listinfo/mono-devel-list