Jump to content

IMAGEPACK

From EDM2
Revision as of 17:27, 8 February 2020 by Martini (talk | contribs) (Created page with "Information pertaining to PutImage and GetImage. ==Type== ULONG ulLength; ULONG ulFlags; ULONG ulHandle; ULONG ulID; ULONG ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Information pertaining to PutImage and GetImage.

Type

 ULONG         ulLength;
 ULONG         ulFlags; 
 ULONG         ulHandle;
 ULONG         ulID;    
 ULONG         ulCmdMask;
 PIMAGEBUF     pPutBuf;  
 PIMAGEBUF     pGetBuf;  
 POINTL        ptlDstOrg;
 ULONG         ulDstXext;
 ULONG         ulDstYext;
 POINTL        ptlSrcOrg;
 ULONG         ulSrcXext;
 ULONG         ulSrcYext;
 ULONG         cVisRects;
 PRECTL        prctlVis; 
 POINTL        ptlWBOrg; 
 ULONG         cWBBytes; 
 PBYTE         pVirtVRAM;
 ULONG         ulGrafXPar;

C Declaration Method

typedef struct

Example Code

typedef struct _IMAGEPACK {
  ULONG         ulLength;    /*  Length of IMAGEPACK data structure, in bytes. */
  ULONG         ulFlags;     /*  Image pack flag. */
  ULONG         ulHandle;    /*  Unique ID returned by VRAMREGISTEROUT. */
  ULONG         ulID;        /*  Unique buffer ID. */
  ULONG         ulCmdMask;   /*  Specific changes since the last frame. */
  PIMAGEBUF     pPutBuf;     /*  Used as source image in PutImage command. */
  PIMAGEBUF     pGetBuf;     /*  Used as destination image in GetImage command. */
  POINTL        ptlDstOrg;   /*  Destination origin (origin at upper left). */
  ULONG         ulDstXext;   /*  Destination X extent. */
  ULONG         ulDstYext;   /*  Destination Y extent. */
  POINTL        ptlSrcOrg;   /*  Offset into the source image. */
  ULONG         ulSrcXext;   /*  Source X extent. */
  ULONG         ulSrcYext;   /*  Source Y extent. */
  ULONG         cVisRects;   /*  Number of output visible rectangles. */
  PRECTL        prctlVis;    /*  Pointer to array of visible regions. */
  POINTL        ptlWBOrg;    /*  Origin of off-screen VRAM work buffer. */
  ULONG         cWBBytes;    /*  Number of bytes in the work buffer. */
  PBYTE         pVirtVRAM;   /*  A 32-bit virtual pointer to the start of VRAM. */
  ULONG         ulGrafXPar;  /*  Transparent color for overlay type devices. */
} IMAGEPACK;

typedef IMAGEPACK *PIMAGEPACK;