package gosdk import "image" // Rect convert CRECT to image Rect func Rect(rect CRECT) image.Rectangle { return image.Rect(int(rect.Left), int(rect.Top), int(rect.Right), int(rect.Bottom)) } // Pt get CPOINT to image Pt func Pt(pt CPOINT) image.Point { return image.Pt(int(pt.X), int(pt.Y)) }