Programmer Reference : Appendix D. Common graphics platform differences
Appendix D. Common graphics platform differences
Parts of the Common Graphics subsystem can behave differently depending on constraints of the platform (hardware, operating system, and window system). For example, Windows provides only four dashed-line styles and does not support user-defined dash styles. Where possible, Common Graphics features are mapped to the closest available features on the platform.
The tables below identify the platform constraints of the Common Graphics subsystem. Blank cells indicate that the corresponding item is fully supported for the indicated platform
Table 116. Constraints on cursors (CgCursor)
Item
Windows
OS/2 PM
X/MOTIF
Color cursors
Not supported
Not supported
 
 
Table 117. Constraints on device independent images (CgDeviceIndependentImage)
Item
Windows
OS/2 PM
X/MOTIF
Display of 1-bit images
 
 
 
Display of 4-bit images
 
 
 
Display of 8-bit images
 
 
 
Display of 16-bit images
Not supported
Not supported
Not supported
Display of 24-bit images
 
 
Not supported
Display of 32-bit images
Not supported
Not supported
Not supported
 
Table 118. Constraints on graphics context attributes (CgGC)
Item
Windows
OS/2 PM
X/MOTIF
arcMode
 
 
 
background
 
 
 
capStyle
CapRound only
 
 
clipMask
 
 
 
dashes
Closest match done to 4 predefined dash lists: #(4 4), #(24 8), #(12 8 4 8), #(12 4 4 4 4 4)
Closest match done to 7 predefined dash lists: #(1 1), #(4 4), #(8 8), #(12 8 4 8), #(12 8), #(4 4 4 20), #(12 4 4 4 4 4)
 
fillRule
 
 
 
fillStyle
Tiles/stipples not supported by thick lines. FillStippled draws the same as FillOpaqueStippled for filled arcs.
 
 
font
 
 
 
foreground
 
 
 
function
 
 
 
joinStyle
JoinRound only
 
 
lineStyle
Dashes not supported by thick lines. Lines can have either dashes or stipple/tile pattern, but not both. Fill style has priority. Color not supported by LineOnOffDash.
Dashes not supported by thick lines. Lines can have either dashes or stipple/tile pattern, but not both. Fill style has priority. LineDoubleDash not supported.
 
lineWidth
 
 
 
stipple
No limit for filled rectangles. 8x8 only for other graphics primitives.
Foreground and background colors unsupported for stipples larger that 8x8.
 
subwindowMode
 
 
 
tile
No limit for filled rectangles. 8x8 only for other graphics primitives.
 
 
 
Table 119. Constraints on icons (CgIcon)
Item
Windows
OS/2 PM
X/MOTIF
Icon size limit
32x32
32x32 (VGA) and 40x40 (8514/A, XGA)
40x40 (8514/A, XGA)
 
Table 120. Constraints on indexed palettes (CgIndexedPalette)
Item
Windows
OS/2 PM
X/MOTIF
Animating entries
Only 256-color devices
Not supported
Not supported
 
Last modified date: 01/29/2015