To invert the pixels enclosed by a rounded rectangle, use the InvertRoundRect procedure. The rectangle that defines the rounded rectangle's boundaries. The width of the oval defining the rounded corner. The height of the oval defining the rounded corner.
Every white pixel becomes black and every black pixel becomes white.
The ovalWidth and ovalHeight parameters specify the diameters of curvature for the corners. The pen location does not change. The InvertRoundRect procedure was designed for 1-bit images in basic graphics ports. This procedure operates on color pixels in color graphics ports, but the results are predictable only with direct devices or 1-bit pixel maps. The eight colors used in basic QuickDraw are stored in a color table represented by the global variable QDColors .