IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Paint System

A system for painting on the screen or on print devices using the same API.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Paint System

Qt's paint system enables painting on screen and print devices using the same API, and is primarily based on the QPainter, QPaintDevice, and QPaintEngine classes.

QPainter is used to perform drawing operations, QPaintDevice is an abstraction of a two-dimensional space that can be painted on using a QPainter, and QPaintEngine provides the interface that the painter uses to draw onto different types of devices. The QPaintEngine class is used internally by QPainter and QPaintDevice, and is hidden from application programmers unless they create their own device type.

Image non disponible

The main benefit of this approach is that all painting follows the same painting pipeline making it easy to add support for new features and providing default implementations for unsupported ones.

Topics

Classes for Painting

These classes provide support for painting onto a paint device.

  • QBitmap: The QBitmap class provides monochrome (1-bit depth) pixmaps.

  • QBrush: The QBrush class defines the fill pattern of shapes drawn by QPainter.

  • QColor: The QColor class provides colors based on RGB, HSV or CMYK values.

  • QColorSpace: The QColorSpace class provides a color space abstraction.

  • QColorTransform: The QColorTransform class is a transformation between color spaces.

  • QConicalGradient: The QConicalGradient class is used in combination with QBrush to specify a conical gradient brush.

  • QFont: The QFont class specifies a query for a font used for drawing text.

  • QFontMetrics: The QFontMetrics class provides font metrics information.

  • QFontMetricsF: The QFontMetricsF class provides font metrics information.

  • QGenericMatrix: The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows.

  • QGradient: The QGradient class is used in combination with QBrush to specify gradient fills.

  • QIcon: The QIcon class provides scalable icons in different modes and states.

  • QIconEngine: The QIconEngine class provides an abstract base class for QIcon renderers.

  • QImage: The QImage class provides a hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device.

  • QImageReader: The QImageReader class provides a format independent interface for reading images from files or other devices.

  • QImageWriter: The QImageWriter class provides a format independent interface for writing images to files or other devices.

  • QLine: The QLine class provides a two-dimensional vector using integer precision.

  • QLineF: The QLineF class provides a two-dimensional vector using floating point precision.

  • QLinearGradient: The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush.

  • QMargins: The QMargins class defines the four margins of a rectangle.

  • QMarginsF: The QMarginsF class defines the four margins of a rectangle.

  • QPageRanges: The QPageRanges class represents a collection of page ranges.

  • QPagedPaintDevice: The QPagedPaintDevice class represents a paint device that supports multiple pages.

  • QPaintDevice: The QPaintDevice class is the base class of objects that can be painted on with QPainter.

  • QPaintEngine: The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a given platform.

  • QPainter: The QPainter class performs low-level painting on widgets and other paint devices.

  • QPainterPath: The QPainterPath class provides a container for painting operations, enabling graphical shapes to be constructed and reused.

  • QPainterPathStroker: The QPainterPathStroker class is used to generate fillable outlines for a given painter path.

  • QPdfWriter: The QPdfWriter class is a class to generate PDFs that can be used as a paint device.

  • QPen: The QPen class defines how a QPainter should draw lines and outlines of shapes.

  • QPixmap: The QPixmap class is an off-screen image representation that can be used as a paint device.

  • QPoint: The QPoint class defines a point in the plane using integer precision.

  • QPointF: The QPointF class defines a point in the plane using floating point precision.

  • QPolygon: The QPolygon class provides a list of points using integer precision.

  • QPolygonF: The QPolygonF class provides a list of points using floating point precision.

  • QRadialGradient: The QRadialGradient class is used in combination with QBrush to specify a radial gradient brush.

  • QRect: The QRect class defines a rectangle in the plane using integer precision.

  • QRectF: The QRectF class defines a finite rectangle in the plane using floating point precision.

  • QRegion: The QRegion class specifies a clip region for a painter.

  • QRgba64: The QRgba64 struct contains a 64-bit RGB color.

  • QRgbaFloat: The QRgbaFloat struct contains a four part RGBA floating-point color.

  • QSize: The QSize class defines the size of a two-dimensional object using integer point precision.

  • QSizeF: The QSizeF class defines the size of a two-dimensional object using floating point precision.

  • QSupportedWritingSystems: The QSupportedWritingSystems class is used when registering fonts with the internal Qt fontdatabase.

  • QTransform: The QTransform class specifies 2D transformations of a coordinate system.

  • QVector2D: The QVector2D class represents a vector or vertex in 2D space.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+