什么是图形上下文(在Java中)? [英] what is a graphics context (In Java)?
本文介绍了什么是图形上下文(在Java中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经多次看过这个词了,它是什么意思?
I have seen the term several times, what does it mean?
推荐答案
上下文是很多的通用名称Java开发人员用于携带状态信息的类。所以必然会看到很多包含上下文的不同类名。
"Context" is a generic name that many java developers use for classes that carry state information. So are bound to see a lot of different class names containing context.
桌面Java中的图形上下文通常意味着 java.awt.Graphics 或 java.awt.Graphics2D 类。它们包含有关绘图属性的信息:颜色,线条属性,剪裁区域等。
Graphic context in desktop Java usually means java.awt.Graphics or java.awt.Graphics2D classes. They carry information about drawing properties: colors, line properties, clipping regions, etc..
这篇关于什么是图形上下文(在Java中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文