Software Archive
Read-only legacy content
17061 Discussions

Rotate image in AcquireAccess

Michael_W_4
Beginner
565 Views
I want to be able to rotate a PXCMimage using the AcquireAccess() function but the following code does not actually rotate the image. Am I doing something wrong?
 
PXCMImage image = sample[PXCMCapture.StreamType.STREAM_TYPE_COLOR];
 
PXCMImage.ImageData data;
pxcmStatus s = image.AcquireAccess(PXCMImage.Access.ACCESS_READ_WRITE,
                        PXCMImage.PixelFormat.PIXEL_FORMAT_RGB24,
                        PXCMImage.Rotation.ROTATION_90_DEGREE,
                         PXCMImage.Option.OPTION_ANY,
                        out data);
image.ImportData(data, 0);
image.info.height = 1920;
image.info.width = 1080;
if (s == pxcmStatus.PXCM_STATUS_NO_ERROR) {
        image.ReleaseAccess(data);
        render(this, new RenderFrameEventArgs(0, image));
}
image.Dispose();
 
 
0 Kudos
2 Replies
Xusheng_L_Intel
Employee
565 Views

It seems it was not implemented. I will double check and keep you post. Thanks!

0 Kudos
Michael_W_4
Beginner
565 Views

Thanks!
 

0 Kudos
Reply