Presentation is loading. Please wait.

Presentation is loading. Please wait.

Image File Format How to read data ? HEADER IFD DATA.

Similar presentations


Presentation on theme: "Image File Format How to read data ? HEADER IFD DATA."— Presentation transcript:

1 Image File Format How to read data ? HEADER IFD DATA

2 Need : Image Width Image Length Strip Offset Read the data…

3 After get the data, can do any thing: Convert to raw ASCII image Image processing

4 Intro to Vicwin Overview What is vicwin? Image processing library by Catenary Sys. Inc. Support : JPEG, BMP, TIFF, GIF, PCX 1, 8, 24 bit function: File handling, memory management, image processing, scanner etc

5 Data Structure Device Independent Image (DIB) Image Descriptor (ImgDes) How to retrieve information: Image width, image height, image size, etc

6 In using vicwin, you are only allow to use for loading image. You can not use built in function for image manipulation.

7 How Victor Image Differ from Windows DIBs Windows DIBs may be compressed or uncompressed, Vicwin can operate only on an uncompressed DIBs Windows allows DIBs to have 1, 4, 8, or 24 bits per pixel, Vicwin can used on 1, 8, 24 bits per pixel.

8 Image Descriptor Format Most import data structure Contains all information necessary for vicwin to operate ImgDes-Describe the image

9 typedeft struct { unsigned char huge *ibuff; unsigned stx, sty, endx, endy; unsigned buffwidth; RGBQUAD far *pallete; int colors, imgtype; BITMAPINFOHEADER far *bmh; HBITMAP hBitmap; }

10 Download the Vicwin from: http://gmm.fsksm.utm.my/~image

11 Using Victor Windows Library Scope – Using Delphi Call vicwin DLL using Delphi Create one file anyname.pas These file contains : DLL calling Error codes, constant value Data structure Function and procedure

12 How to load vicwin? There are a few step : Install new component Or add vicwin.pas in each file that use it with USES vicwin

13 Your application Function prototype – vicwin.pas – interface layer Vic32.dll Delphi

14 Basic architecture File Scanner Clipboard Vicwin Image - ImgDes View image Processing Loading image


Download ppt "Image File Format How to read data ? HEADER IFD DATA."

Similar presentations


Ads by Google