NPAPI:DrawImage: Difference between revisions

Jump to navigation Jump to search
Line 51: Line 51:
     NPImageFormat format;    /* Format of image pointer */
     NPImageFormat format;    /* Format of image pointer */
     NPSize        dataSize;  /* Data buffer size */
     NPSize        dataSize;  /* Data buffer size */
    /* Clip rectangle, must be used for trusted plugins */
 
     int32_t      x;      /* Expose x relative to 0,0 of plugin window area*/
     /* Plugin window area rectangle relative to 0,0 beginning of buffer image*/
    int32_t      y;      /* Expose y relative to 0,0 of plugin window area */
     NPRect        pluginArea;  
     uint32_t      width; /* Expose width */
 
    uint32_t      height; /* Expose height */
     /* Clip rectangle relative to pluginArea rectangle*/
     /* Position and scale values for plugin area */
     NPRect        clip;
    float        translateX; /* translate X matrix value, (x offset) */
     float        translateY; /* translate Y matrix value, (y offset) */
    /* Defines plugin window size on scaled context, if 1 then size = window size */
    float        scaleX;    /* scale X matrix value */
    float        scaleY;    /* scale Y matrix value */
   } NPImageData;
   } NPImageData;


Confirmed users
180

edits

Navigation menu