diff options
Diffstat (limited to 'chalk/core/kis_alpha_mask.h')
-rw-r--r-- | chalk/core/kis_alpha_mask.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chalk/core/kis_alpha_mask.h b/chalk/core/kis_alpha_mask.h index 5573f5e6..c19cae59 100644 --- a/chalk/core/kis_alpha_mask.h +++ b/chalk/core/kis_alpha_mask.h @@ -28,15 +28,15 @@ /** * KisAlphaMask is intended to create alpha values from a TQImage for use - * in brush creation. It is not a generic alpha tqmask that can be used with + * in brush creation. It is not a generic alpha mask that can be used with * KisPaintDevices: use a KisSelection for that. */ class KisAlphaMask : public KShared { public: /** - Create an alpha tqmask based on the specified TQImage. If the image is - not a grayscale, the tqmask value is calculated from the effective grey + Create an alpha mask based on the specified TQImage. If the image is + not a grayscale, the mask value is calculated from the effective grey level and alpha value. */ KisAlphaMask(const TQImage& img); @@ -48,7 +48,7 @@ class KisAlphaMask : public KShared { KisAlphaMask(const TQImage& img, bool hasColor); /** - Create a transparent tqmask. + Create a transparent mask. */ KisAlphaMask(TQ_INT32 width, TQ_INT32 height); @@ -60,7 +60,7 @@ class KisAlphaMask : public KShared { TQ_INT32 height() const; /** - @return the number of lines in the tqmask. + @return the number of lines in the mask. */ TQ_INT32 width() const; @@ -68,14 +68,14 @@ class KisAlphaMask : public KShared { @return the alpha value at the specified position. Returns TQ_UINT8 OPACITY_TRANSPARENT if the value is - outside the bounds of the tqmask. + outside the bounds of the mask. XXX: this is, of course, not the best way of masking. Better would be to let KisAlphaMask fill a chunk of memory with the alpha values at the right position, something like void applyMask(TQ_UINT8 *pixeldata, TQ_INT32 pixelWidth, TQ_INT32 alphaPos). That would be fastest, or we could - provide an iterator over the tqmask, that would be nice, too. + provide an iterator over the mask, that would be nice, too. */ inline TQ_UINT8 alphaAt(TQ_INT32 x, TQ_INT32 y) const { @@ -89,9 +89,9 @@ class KisAlphaMask : public KShared { void setAlphaAt(TQ_INT32 x, TQ_INT32 y, TQ_UINT8 alpha); - // Create a new tqmask by interpolating between tqmask1 and tqmask2 as t + // Create a new mask by interpolating between mask1 and mask2 as t // goes from 0 to 1. - static KisAlphaMaskSP interpolate(KisAlphaMaskSP tqmask1, KisAlphaMaskSP tqmask2, double t); + static KisAlphaMaskSP interpolate(KisAlphaMaskSP mask1, KisAlphaMaskSP mask2, double t); private: void computeAlpha(const TQImage& img); |