com.trolltech.qt.gui
Class QPixmapFilter

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.gui.QPixmapFilter
All Implemented Interfaces:
QtJambiInterface
Direct Known Subclasses:
QPixmapColorizeFilter, QPixmapConvolutionFilter, QPixmapDropShadowFilter

public abstract class QPixmapFilter
extends QtJambiObject

The QPixmapFilter class provides the basic functionality for pixmap filter classes. Pixmap filter can be for example colorize or blur. QPixmapFilter is the base class for every pixmap filter. QPixmapFilter is an abstract class and cannot itself be instantiated. It provides a standard interface for filter processing.


Nested Class Summary
static class QPixmapFilter.FilterType
          This enum describes the types of filter that can be applied to pixmaps.
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
protected QPixmapFilter(QPixmapFilter.FilterType type)
          Constructs a default QPixmapFilter with the given type.
 
Method Summary
 QRectF boundingRectFor(QRectF rect)
          Returns the bounding rectangle that is affected by the pixmap filter if the filter is applied to the specified rect.
 void draw(QPainter painter, QPointF p, QPixmap src)
          Uses painter to draw filtered result of src at the point specified by p.
abstract  void draw(QPainter painter, QPointF p, QPixmap src, QRectF srcRect)
          Uses painter to draw filtered result of src at the point specified by p.
 QPixmapFilter.FilterType type()
          Returns the type of the filter.
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QPixmapFilter

protected QPixmapFilter(QPixmapFilter.FilterType type)
Constructs a default QPixmapFilter with the given type.

This constructor should be used when subclassing QPixmapFilter to create custom user filters.

Method Detail

type

public final QPixmapFilter.FilterType type()
Returns the type of the filter. All standard pixmap filter classes are associated with a unique value.


boundingRectFor

public QRectF boundingRectFor(QRectF rect)
Returns the bounding rectangle that is affected by the pixmap filter if the filter is applied to the specified rect.


draw

public final void draw(QPainter painter,
                       QPointF p,
                       QPixmap src)
Uses painter to draw filtered result of src at the point specified by p. If srcRect is specified the it will be used as a source rectangle to only draw a part of the source.

draw() will affect the area which boundingRectFor() returns.


draw

public abstract void draw(QPainter painter,
                          QPointF p,
                          QPixmap src,
                          QRectF srcRect)
Uses painter to draw filtered result of src at the point specified by p. If srcRect is specified the it will be used as a source rectangle to only draw a part of the source.

draw() will affect the area which boundingRectFor() returns.