Difference between Bitmap object created in a WinForm and a WebService

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



Hi All,

I was working on a graphics libraray on .net.I used GDI+ classes for
rendering.
I generally use a winform client application to test my library.
The images is a grayscale image in GIF format.

However, when I use the same library from a ASP.Net webservice I find
that the images generated are not the same.

There are two specific issues.
The RotateTransform API does not behave the same.The input values that
work for WinForm Client has to be changed when we use the webservice.
Also, final image is no longer grayscale.In normal view it looks all
right but when I zoom up the image(which is a requirement) small specs
of different colors appear in the grayscale part.

This does not happen in the image from the WinForm.
I use the same code in both cases.Has anybody else faced this issue or
has MS made this a known issue.

Any help is welcome.

.