Skip to main content
Known Participant
August 17, 2016
Question

AVPageViewDragOutNewRect element invisible page

  • August 17, 2016
  • 1 reply
  • 576 views

I used the AVPageViewDragOutNewRect () function to draw a rectangle on the page. I know that rectangle is being drawn because I checked the values of the left, right, bottom, and top after I converted the ASDevRect to a ASFixedRect. However, the rectangle that I drew is not showing on the page. Is there a way to make the drawn rectangle visible.?

AVPageViewDragOutNewRect()
This topic has been closed for replies.

1 reply

LWShayAuthor
Known Participant
August 17, 2016

I tried using the code below. The rectangle will appear for a brief second then disappear. resultRect represents a AVDevRect object.

PDColorValueRec red;

red.space = PDDeviceRGB;

red.value[0] = Int32ToFixed(1);

red.value[1] = 0;

red.value[2] = 0;

AVPageViewSetColor(pageView, &red);

AVPageViewDrawRectOutline(pageView, &resultRect, 1,  NULL, 0);