Exemple #1
0
 internal static extern pxcmStatus PXCMImage_ImportData(IntPtr image, PXCMImage.ImageData data, Int32 flags);
Exemple #2
0
    /**
     *  @brief Create an instance of the PXCMImage interface with data. The application must
     *  maintain the life cycle of the image data for the PXCMImage instance.
     *  @param[in]  info	The format and resolution of the image.
     *  @param[in]	data	Optional image data.
     *  @return The PXCMImage instance.
     */
    public PXCMImage CreateImage(PXCMImage.ImageInfo info, PXCMImage.ImageData data)
    {
        IntPtr image = PXCMSession_CreateImage(instance, info, data);

        return((image != IntPtr.Zero) ? new PXCMImage(image, true) : null);
    }
Exemple #3
0
 /**
  * @brief Copy image data from the specified external buffer.
  * @param[in] data             The ImageData structure that describes the image buffer.
  * @param[in] options          Reserved.
  * @return PXCM_STATUS_NO_ERROR     Successful execution.
  */
 public pxcmStatus ImportData(PXCMImage.ImageData data, Int32 flags)
 {
     return(PXCMImage_ImportData(instance, data, flags));
 }
Exemple #4
0
 internal static extern IntPtr PXCMSession_CreateImage(IntPtr session, PXCMImage.ImageInfo info, PXCMImage.ImageData data);