Image File Format - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Image File Format

Description:

After get the data, can do any thing: Convert to raw. ASCII image. Image processing ... { unsigned char huge *ibuff; unsigned stx, sty, endx, endy; unsigned buffwidth; ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 15
Provided by: utm84
Category:
Tags: file | format | image | unsigned

less

Transcript and Presenter's Notes

Title: Image File Format


1
Image File Format
HEADER
IFD
DATA
  • How to read 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
Delphi
Your application
Function prototype vicwin.pas interface layer
Vic32.dll
14
Basic architecture
File
Vicwin Image - ImgDes
Scanner
Clipboard
View image
Processing
Loading image
Write a Comment
User Comments (0)
About PowerShow.com