A rectangular area of a drawable can be retrieved as an image using the getDeviceIndependentImage: method of CgDrawable. This is primarily useful for taking snapshots of the screen or specific windows. It can also be used, with putDeviceIndependentImage:, to stretch an area of a drawable.
|