Home Dashboard Directory Help
Search

Lockbits - specifying a rectangle with pixelformat 32bppArGB by jo0ls


Status: 

Closed
 as Won't Fix Help for as Won't Fix


0
0
Sign in
to vote
Type: Bug
ID: 249805
Opened: 1/4/2007 1:52:53 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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.
Details
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
Sign in to post a workaround.