Lockbits - specifying a rectangle with pixelformat 32bppArGB - by jo0ls

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 249805 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/4/2007 1:52:53 AM
Access Restriction Public


If you create a bitmap of pixelformat 32bppRGB and then Lock a smaller rectangular potion of the image for reading with lockbits then you must specify pixelFormat 32bppARGB as a parameter in the Lockbits Method.
It happens the other way round too, if you create a 32bppARGB bitmap, then you must lock it specifying 32bppRGB. 
Sign in to post a comment.
Posted by Microsoft on 1/26/2007 at 11:34 AM
Thanks for your feedback on the .NET Framework! As you may have seen in DevDiv VP - S. Somasegar’s blog on the topic (http://blogs.msdn.com/somasegar/archive/2006/05/18/601354.aspx) the next release of the .NET Framework (codenamed “Orcas”) requires a high degree of backwards compatibility. As such we are not able to address this issue with a fix in the .NET Framework in the Orcas timeframe. Many customers have found it useful to discuss issues like this in the forums (http://forums.microsoft.com/msdn/default.aspx?siteid=1) where Microsoft and other members of the community can suggest workarounds.

Before we even begin work on the next release of the NET Framework release where we can make changes like this one we will devote time to addressing the top issues (in terms of number of votes, lack of workarounds, etc). So please do continue to vote for this item if it is causing issues.

Thanks and keep the feedback coming.

UIFx Team