2D and 3D Graphics

来源:互联网 发布:橡塑保温管立方算法 编辑:程序博客网 时间:2024/04/19 11:24

  Qt provides excellent support for 2D and 3D graphics. Qt’s 2D graphics classes
support raster and vector graphics, and can load and save a wide and extensible
range of image formats. Qt can draw Unicode rich text, rotated and sheared as
required.

  Graphics are drawn using device-independent painter objects that allow the developer to
reuse the same code to render graphics on different types of device, represented in Qt
by paint devices .

  Support for device-independent colors is provided by the QColor class. Colors are specified
by ARGB, AHSV, or ACMYK values, or by common names (e.g., “skyblue”). QColor’s color
channels are 16 bits wide, and colors can be specified with an optional level of opacity; Qt
automatically allocates the requested color in the system’s palette, or uses a similar color
on color-limited displays.