Exemplo n.º 1
0
        public override void Work(Graphics g)
        {
            data = module.CreateOutput();
            data.Update();
            PXCMHandData.IHand hands = null;
            data.QueryHandData(PXCMHandData.AccessOrderType.ACCESS_ORDER_BY_ID, 0, out hands);
            if (hands == null)
            {
                return;
            }
            PXCMRectI32 rect      = hands.QueryBoundingBoxImage();
            Rectangle   rectangle = new Rectangle(rect.x, rect.y, rect.w, rect.h); // Convert to Rectangle

            g.DrawRectangle(pen, rectangle);                                       // Draw
        }