Image File Related Methods

A program or Workplace Shell object would call the following methods to get information about an image file object. These methods are not normally overridden.

┌──────────────────────────────┬──────────────────────────────┐
│Method Name                   │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryBitmapData             │Returns a pointer to the      │
│                              │bitmap data for the image     │
│                              │file.                         │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryBitmapHandle           │Returns a handle to the bitmap│
│                              │that can be displayed showing │
│                              │the contents of the image file│
│                              │and a handle to the palette to│
│                              │be used when displaying the   │
│                              │bitmap.                       │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryBitmapInfoHeader       │Returns a pointer to the      │
│                              │bitmap information header for │
│                              │the image file.               │
└──────────────────────────────┴──────────────────────────────┘

A program or Workplace Shell object would call the following method to set information about an image file object.

┌──────────────────────────────┬──────────────────────────────┐
│Method Name                   │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│wpSetBitmapData               │Sets the bitmap data for the  │
│                              │image file.  This method will │
│                              │convert the bitmap data to the│
│                              │appropriate format and update │
│                              │the actual image data file.   │
└──────────────────────────────┴──────────────────────────────┘

A program or Workplace Shell object would call the following method to read or write information about an image file object.

┌──────────────────────────────┬──────────────────────────────┐
│Method Name                   │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│wpReadImageFile               │Reads the image data for the  │
│                              │image file and stores it in   │
│                              │the instance data for the     │
│                              │object. If the image data has │
│                              │already been read, this method│
│                              │simply returns TRUE.  It does │
│                              │not refresh the image data.   │
├──────────────────────────────┼──────────────────────────────┤
│wpWriteImageFile              │Writes the image data for the │
│                              │image file from the instance  │
│                              │data.                         │
└──────────────────────────────┴──────────────────────────────┘


[Back: Icon Related Methods]
[Next: Network Related Methods]