×

Programmer’s Guide to the Java

消耗积分:2 | 格式:rar | 大小:555 | 2008-10-14

王杰

分享资料个

Programmer’s Guide to the Java 2D API
JavaTM 2D API Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Enhanced Graphics, Text, and Imaging . . . . . . . . . . . . . . . 1
Rendering Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Coordinate Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Transforms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Fills and Strokes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Composites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Backward Compatibility and Platform Independence . . . 8
Backward Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Platform Independence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
The Java 2D API Packages . . . . . . . . . . . . . . . . . . . . . . . . 10
Rendering with Graphics2D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Interfaces and Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Rendering Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Rendering Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Controlling Rendering Quality . . . . . . . . . . . . . . . . . . . . . . . 17
Stroke Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Fill Attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Clipping Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Transformations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Composite Attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Setting Up the Graphics2D Context . . . . . . . . . . . . . . . . . 27
Setting Rendering Hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Specifying Stroke Attributes . . . . . . . . . . . . . . . . . . . . . . . . . 27
Specifying Fill Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

评论(0)
发评论

下载排行榜

全部0条评论

快来发表一下你的评论吧 !