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

Submitted by:  Ovidiu Sabou <ovidiu_s>
Submitted on:  Sun 12 Sep 2004 06:02:34 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 15 Sep 2004 11:29:57 PM UTCrweatherStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Mon 13 Sep 2004 01:36:18 PM UTCovidiu_sAttached File-=>Added ovidiu-040913.patch, #1659
Sun 12 Sep 2004 06:02:34 AM UTCovidiu_sAttached File-=>Added ovidiu-040912.patch, #1653

Back to the top


Powered by Savane 3.1-cleanup1