HighTechTalks DotNet Forums  

To avoid lockbits

Dotnet Framework (Drawing) microsoft.public.dotnet.framework.drawing


Discuss To avoid lockbits in the Dotnet Framework (Drawing) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
pro-grammer
 
Posts: n/a

Default To avoid lockbits - 08-05-2009 , 02:24 AM






Hi,

My goal is to load an image as a bmp and get to its pixels. So what i
do is:

Bitmap::FromFile(<filename>); // i guess this loads the file as a bmp
LockBits(...); // this coppies the bitmap's bits into another buffer
//now i can use the pixels

Is there any way to avoid the extra copy at LockBits(which is
expensive)? I want direct access to the bits loaded from the file. Is
there any way to do this in mfc/.net?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.