|
-
Jul 23rd, 2003, 01:05 AM
#1
Thread Starter
Fanatic Member
Stupid question about GetDIBits [resolved]
I'm sure a similar question has been asked, but I wasn't able to find the answer to it. I'm trying to write a function similar to BitBlt in vc++ and I need to perform some calculations on each pixel of the Source DC. I breifly thought of using SetPixel but then realized that using a Dib would definitly be much faster (you directly modify the pixels in an array).
Anyway, long story short, I'm new to c++. If a function is returning an array, how do I set up the buffer for that array? The size of the Dib may vary, therefore I need to dynamically create the array based on the dimensions of the image being modified.
Do I need to allocate the entire array before calling the function, or will the function reallocate my array so the data will fit? Should the array be two dimensions or one?
BTW, my native toungue in VB6.
Last edited by agent; Jul 29th, 2003 at 11:28 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|