Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::image::ImageFile_tag Structure
C++
struct ImageFile_tag {
  int x;
  int y;
  int width;
  int height;
  int actual_x;
  int actual_y;
  int actual_width;
  int actual_height;
  int pwidth;
  PCOLOR image;
  int flags;
  struct ImageFile_tag * * pParent, * pChild, * pElder, * pYounger;
  int eff_x;
  int eff_y;
  int eff_maxx;
  int eff_maxy;
  IMAGE_RECTANGLE auxrect;
};
Members 
Description 
int x; 
X coordinate of the image within another image. 
int y; 
Y coordinate of an image within another image. 
int width; 
desired height and width may not be actual cause of 
int height; 
resizing of parent image.... 
int actual_x; 
need this for sub images - otherwise is irrelavent 
int actual_y; 
Y coordinate of the image. probably 0 if a parent image. 
int actual_width; 
Width of image. 
int actual_height; 
Height of image. 
int pwidth; 
width of real physical layer 
PCOLOR image; 
The image data. 
int flags; 
a combination of IF_FLAG_ (ImageFile Flag) which apply to this image. 
struct ImageFile_tag * pChild; 
This points to a peer image that existed before this one. If NULL, there is no elder, otherwise, contains the next peer image in the same parent image. Points to the parent image of a sub-image. (The parent image contains this image) Pointer to the youngest child sub-image. If there are no sub images pChild will be NULL. Otherwise, pchild points at the first of one or more sub images. Other sub images in this one are found by following the pElder link of the pChild. This points at a more recently created sub-image. (another sub image within the same parent, but younger) 
struct ImageFile_tag * pElder; 
This points to a peer image that existed before this one. If NULL, there is no elder, otherwise, contains the next peer image in the same parent image. Points to the parent image of a sub-image. (The parent image contains this image) Pointer to the youngest child sub-image. If there are no sub images pChild will be NULL. Otherwise, pchild points at the first of one or more sub images. Other sub images in this one are found by following the pElder link of the pChild. This points at a more recently created sub-image. (another sub image within the same parent, but younger) 
struct ImageFile_tag * * pParent; 
This points to a peer image that existed before this one. If NULL, there is no elder, otherwise, contains the next peer image in the same parent image. Points to the parent image of a sub-image. (The parent image contains this image) Pointer to the youngest child sub-image. If there are no sub images pChild will be NULL. Otherwise, pchild points at the first of one or more sub images. Other sub images in this one are found by following the pElder link of the pChild. This points at a more recently created sub-image. (another sub image within the same parent, but younger) 
struct ImageFile_tag * pYounger; 
This points to a peer image that existed before this one. If NULL, there is no elder, otherwise, contains the next peer image in the same parent image. Points to the parent image of a sub-image. (The parent image contains this image) Pointer to the youngest child sub-image. If there are no sub images pChild will be NULL. Otherwise, pchild points at the first of one or more sub images. Other sub images in this one are found by following the pElder link of the pChild. This points at a more recently created sub-image. (another sub image within the same parent, but younger) 
int eff_x; 
effective x - clipped by reality real coordinate. (often eff_x = -real_x ) 
int eff_y; 
this is used internally for knowing what the effective y of the image is. If the sub-image spans a boundry of a parent image, then the effective Y that will be worked with is only a part of the subimage. 
int eff_maxx; 
effective max - maximum coordinate... 
int eff_maxy; 
effective maximum Y 
IMAGE_RECTANGLE auxrect; 
An extra rectangle that can be used to carry additional information like update region. 

*Image, ImageFile; The basic structure. This is referenced by applications as 'Image' This is the primary type that the image library works with. 

 

This is the internal definition.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!