DotGNU 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: |
Rhys Weatherley <rweather> |
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> |
Depends on the following items: None found
Items that depend on this one: None found
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 | Status | None | Fixed | |
Open/Closed | Open | 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 |
Powered by Savane 3.13-4b48.
Corresponding source code
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.