FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

c#/c++ bmp.LockBits - like function for DFL

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
mithras



Joined: 19 May 2010
Posts: 2

PostPosted: Wed May 19, 2010 10:12 pm    Post subject: c#/c++ bmp.LockBits - like function for DFL Reply with quote

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
View user's profile Send private message
kanryu



Joined: 02 May 2010
Posts: 9

PostPosted: Thu May 20, 2010 11:49 am    Post subject: Reply with quote

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. Smile


Last edited by kanryu on Thu May 20, 2010 4:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
mithras



Joined: 19 May 2010
Posts: 2

PostPosted: Thu May 20, 2010 3:54 pm    Post subject: Reply with quote

Thanks, kanryu. I will try it and report back.
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Thu Jun 03, 2010 12:57 pm    Post subject: Reply with quote

There's also a addons at http://wiki.dprogramming.com/Dfl/AddOns called DrawingArea and GraphicsBuffer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group