bugDotGNU Portable.NET - Bugs: bug #10360, System.Drawing.Bitmap.LockBits...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10360: System.Drawing.Bitmap.LockBits unimplemented

Submitter:  Ovidiu Sabou <ovidiu_s>
Submitted:  Sun 12 Sep 2004 06:02:34 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 15 Sep 2004 11:29:57 PM UTC, comment #1: 

Fix committed to CVS - 16 Sep 2004.  I implemented a slightly
more efficient version as it isn't necessary to make a copy of
the image.

Rhys Weatherley <rweather>
Group administrator
Sun 12 Sep 2004 06:02:34 AM UTC, original submission:  

the LockBits and UnlockBits from Bitmap class are not implemented. My project which uses OpenGL for drawing calls those functions to get the bitmap data in order to pass it to the opengl texture generator. Since pnet stores the bitmap data in a managed array, a conversion from managed to unmanaged must be done with the DotGNU.Images.Frame.Data. Patch modifies the Utils class from DotGNU.Images from internal to public ( in order for some functions to be used by LockBits inside System.Drawing) and also implements those functions. It is only meants to be used for read only purposes. So any modifications made to the BitmapData after locking will be lost. UnlockBits doesn't make any modifications to the bitmap, it only sets free the memory pointed by Scan0 pointer

Ovidiu Sabou <ovidiu_s>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1730:  ovidiu-040913.patch added by ovidiu_s (6KiB - text/x-patch - better designed than the previous)
file #1724:  ovidiu-040912.patch added by ovidiu_s (6KiB - text/x-patch - patch with a simple implementation)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-09-15 rweather StatusNone Fixed
    Open/ClosedOpen Closed
2004-09-13 ovidiu_s Attached File- Added ovidiu-040913.patch, #1659
2004-09-12 ovidiu_s Attached File- Added ovidiu-040912.patch, #1653

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code