Java 2D API 概念总览——Java 2D Oracle官方教程翻译(双语对照)

本文翻译自Oracle官方教程
<<Previous • Trail • Next>>

Overview of the Java 2D API Concepts

The Java 2D API provides two-dimensional graphics, text, and imaging capabilities for Java programs through extensions to the Abstract Windowing Toolkit (AWT).

通过对抽象窗口工具箱(AWT)的扩展,Java 2D API为Java程序提供了二维图形,文本,图像的绘制能力。

This comprehensive rendering package supports line art, text, and images in a flexible, full-featured framework for developing richer user interfaces, sophisticated drawing programs, and image editors.

为了更丰富的UI开发、精致的绘画和图像编辑,这个综合渲染程序包在一个灵活且功能全面的框架内支持了对美术线条、文本和图像的渲染。

Java 2D objects exist on a plane called user coordinate space, or just user space.

Java 2D 对象都存在于一个被称为用户坐标空间的平面上,可简称此平面为用户空间

When objects are rendered on a screen or a printer, user space coordinates are transformed to device space coordinates.

当这些对象被渲染在屏幕或打印机上时,用户空间坐标会变换为设备空间坐标

The following links are useful to start learning about the Java 2D API:

下面2个链接会对你开始学习 Java 2D API 有所帮助:

The Java 2D API provides following capabilities:

Java 2D API 提供如下功能:

  • A uniform rendering model for display devices and printers
  • 通用于显示设备和打印机的统一渲染模型。
  • A wide range of geometric primitives, such as curves, rectangles, and ellipses, as well as a mechanism for rendering virtually any geometric shape
  • 广泛的几何图元,如曲线、矩形、椭圆,和一种几乎可以渲染任何几何图形的机制
  • Mechanisms for performing hit detection on shapes, text, and images
  • 在图形、文本和图像上执行碰撞检测的机制
  • A compositing model that provides control over how overlapping objects are rendered
  • 一个图像合成模型,可以控制如何渲染重叠的对象
  • Enhanced color support that facilitates color management
  • 增强的颜色支持,有助于颜色管理
  • Support for printing complex documents
  • 对打印复杂文档的支持
  • Control of the quality of the rendering through the use of rendering hints
  • 通过使用渲染提示实现对渲染质量的控制

These topics are discussed in the following sections:

这些主题会在以下小节中详述:

  • Java 2D Rendering
  • Geometric Primitives
  • Text
  • Images
  • Printing

<<Previous • Trail • Next>>

发布了9 篇原创文章 · 获赞 0 · 访问量 648

猜你喜欢

转载自blog.csdn.net/realcfuture/article/details/103935388