Click to See Complete Forum and Search --> : Some help on bitmaps and imaging


rameshmirpuri
April 2nd, 1999, 09:16 AM
Hi...name is ramesh and from singapore here..


I have been given the following task to program. I am a basic programmer in VC++ and roughly need some advise
My project:
-Open a bitmap file, display the bitmap and extract the bits from the bitmap.
- do some calculation with an array on the bits
- display the new modified bitmap alongside the old one.
-user must be able to switch between and view both bitmaps
-save the new bitmap to a file.
-zoom the bitmap if needed
- prin the bitmaps if needed as what they appear.

-my project aim is to show what the array algo can do.

do i
-use mdi or sdi
-how do i manipulate views...
-extract out the bits...
-do i use SetDIBbitstoDEvice, BITBLT(), DrawDibDraw(), StretchDibBits()?
how do i implement printing

I am now able to open and display abitmap on an sdi window. I can save a bitmap to a file.
But when i minimise my application, the bitmap disappears when i restore it back again
why???

my algo for the array resides in an array which i have created. I need to be able to extract oot the bits..
currebtly implementing it with a DIBSECTION....any advise would be most wonderful..

any samples would be tremendously wonderful as well

thanks..
my deadline is next month.....help

April 2nd, 1999, 12:25 PM
the image is disappearing because you are probably not drawing the
image in your OnDraw function. just a guess...

d_wzrdv_z
June 7th, 2000, 10:33 PM
On codeguru.com under bitmaps (section) you will find the 'GfxImage' library (or something like that) which has built in those imaging methods which you mentioned, which aren't built in to the GDI.

hth (I'm sure it will its brill)

Henry