1 Sep 2006 16:08
Re: Weird issues reading pixels of jpg file on osx
Sebastien Pouliot <sebastien <at> ximian.com>
2006-09-01 14:08:02 GMT
2006-09-01 14:08:02 GMT
Thanks Dan, I've opened bug #79246 for the LockBits issues which, from the unit tests I added this morning, appears to affect every type of bitmaps. FYI the problem that affected the (first two lines of) JPEG bitmaps doesn't happen on any other type of pictures. On Thu, 2006-08-31 at 09:02 -0700, Dan Shryock wrote: > Sebastien, > > I just ran the code for reading jpegs on the 1.1.14 build on osx and > it had different results that those that I am currently getting, but > they were still not correct. Hope this helps. > > Dan > > On 1.1.14 it came out as: > > 255 > 255 > 255 > 255 > 77 > 255 > 255 > 75 > 144 > 255 > 75(Continue reading)
> I didn't think it would be too hard to make them a
> lot better, even without breaking cross-platform compatibility, but I
> didn't have the free time to sit down and work it out until now.
>
> My proposal is two added functions to libgdiplus, along with a new GpStatus
> value.
>
> GpStatus.ExtendedError (1000000): Indicates that the last error which
> occurred has an extended description accessible through
> GdipGetErrorEx ().
>
> GpStatus GdipSetErrorEx (GpStatus status, char *description): Places
> the specified status code & description into TLS slots allocated
> for the purpose and returns GpStatus.ExtendedError. In the event
> that TLS slots could not be allocated (a non-fatal error during
> GdipStartup ()), GdipSetErrorEx actually simply returns its first
> argument, and the feature is transparently disabled.
>
> int GdipGetErrorEx (GpStatus *status, char *description): Copies the
> last error set with GdipSetErrorEx into the parameters. Either
> parameter can be NULL. If description is not NULL, then it is
RSS Feed