View previous topic :: View next topic |
Author |
Message |
mithras
Joined: 19 May 2010 Posts: 2
|
Posted: Wed May 19, 2010 10:12 pm Post subject: c#/c++ bmp.LockBits - like function for DFL |
|
|
Hi,
Chris and other DFL fans, thank you for the work that you have put in to develop and refine DFL.
My Question: Does D or DFL have any function similar to the c# / c++
bmp.LockBits
which returns a pointer to the first byte of the color information of the bitmap bmp?
If not, is there a workaround that I could use. I am especially interested to apply it to jpg files.
Thanks,
mithras |
|
Back to top |
|
|
kanryu
Joined: 02 May 2010 Posts: 9
|
Posted: Thu May 20, 2010 11:49 am Post subject: |
|
|
call GetDIBits() for HBITMAP of class Bitmap
http://msdn.microsoft.com/ja-jp/library/cc428673.aspx
and current DFL uses gdi32.dll directly.
I think it should use gdiplus then more better.
Last edited by kanryu on Thu May 20, 2010 4:49 pm; edited 1 time in total |
|
Back to top |
|
|
mithras
Joined: 19 May 2010 Posts: 2
|
Posted: Thu May 20, 2010 3:54 pm Post subject: |
|
|
Thanks, kanryu. I will try it and report back. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
|
Back to top |
|
|
|