18#ifndef KIS_ALPHA_MASK_
19#define KIS_ALPHA_MASK_
22#include <tqvaluevector.h>
24#include <ksharedptr.h>
26#include "kis_global.h"
65 TQ_INT32 width() const;
80 inline TQ_UINT8 alphaAt(TQ_INT32 x, TQ_INT32 y) const
82 if (y >= 0 && y < m_height && x >= 0 && x < m_width) {
83 return m_data[(y * m_width) + x];
86 return OPACITY_TRANSPARENT;
90 void setAlphaAt(TQ_INT32 x, TQ_INT32 y, TQ_UINT8 alpha);
94 static KisAlphaMaskSP interpolate(KisAlphaMaskSP mask1, KisAlphaMaskSP mask2, double t);
97 void computeAlpha( const TQImage& img);
98 void copyAlpha( const TQImage& img);
100 TQValueVector<TQ_UINT8> m_data;
KisAlphaMask is intended to create alpha values from a TQImage for use in brush creation.
TQ_UINT8 alphaAt(TQ_INT32 x, TQ_INT32 y) const
|