Flutterby™! : MS Whine OTD

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

MS Whine OTD

2008-05-28 18:59:58.174536+00 by Dan Lyke 2 comments

Sigh. Working with notYET[Wiki] again, specifically C#. You might think that in the byte pointer to data gotten back from a call that specifies ...PixelFormat.Format32bppArgb that b[0] would be alpha, b[1] red, and so forth, but nooooo, in fact, it's bgra.

[ related topics: Microsoft ]

comments in ascending chronological order (reverse):

#Comment Re: made: 2008-05-29 16:54:33.175928+00 by: dexev

do you need to call htonl? :)

#Comment Re: made: 2008-05-29 20:27:36.303683+00 by: Dan Lyke

Probably, except that this being Microsoft, that'll undoubtedly result in pages of compiler spew that reads something like "Warning: htonl is unsafe and deprecated, use _htonl_s() instead"...