Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading image

Status
Not open for further replies.

ain79

Programmer
Nov 16, 2002
12
0
0
PK
hello !
i want to read a gray scale image into array of 516 by 516 and then write it using vc++ or simple c
plz help
 
Hi,

Is the image a file ?. I mean a BMP or something of that sort ?

In any case you can use the following APIs to read/write an Image.

CreateBitmap
CreateBitmapIndirect
CreateCompatibleBitmap
CreateDIBitmap
CreateDIBSection
ExtFloodFill
GetDIBits
LoadBitmap
SetDIBits
StretchBlt
StretchDIBits
TransparentBlt

To read an Image you can use the LoadBitmap() and GetDIBits() API.
A bit of a research and help should help you achieve your goal.

Regards,
Sun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top