From 42ee04702c61f84b2180c89956aeb017fc315c4e Mon Sep 17 00:00:00 2001 From: Jens Ole Wund Date: Fri, 9 Sep 2005 22:31:23 +0000 Subject: having a "mini gimp" in image editor { hope it does not break builds .. mscv6 .. scons works fine here } --- source/blender/img/intern/IMG_CanvasRGBA32.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/blender/img/intern/IMG_CanvasRGBA32.h') diff --git a/source/blender/img/intern/IMG_CanvasRGBA32.h b/source/blender/img/intern/IMG_CanvasRGBA32.h index fb201202fc1..e7eaaa86280 100644 --- a/source/blender/img/intern/IMG_CanvasRGBA32.h +++ b/source/blender/img/intern/IMG_CanvasRGBA32.h @@ -46,6 +46,12 @@ class IMG_CanvasRGBA32 : public IMG_PixmapRGBA32 { public: + int add_if_in(int x, int y,float &R,float &G,float &B, int &count, short flags); + void Smear(float uStart, float vStart, float uEnd, float vEnd ,TUns32 size, float alpha, float aspect,char mode); + IMG_BrushRGBA32* LiftBrush(float u, float v, TUns32 size, float alpha, float aspect, short flags ); + IMG_BrushRGBA32* LiftBrush(TUns32 x, TUns32 y, TUns32 size, float alpha, float aspect, short flags); + void SoftenAt(float u,float v,TUns32 size,float alpha,float aspect,char mode); + void CloneAt(IMG_CanvasRGBA32* other,float u,float v,float cu,float cv,TUns32 size,float alpha,float aspect); /** * Constructor. * @throw when an invalid width and/or height is passed. @@ -76,7 +82,7 @@ public: * @param y y-coordinate of the center location of the image. * @param pixmap the pixmap to blend */ - virtual void blendPixmap(TUns32 xStart, TUns32 yStart, TUns32 xEnd, TUns32 yEnd, const IMG_PixmapRGBA32& pixmap); + virtual void blendPixmap(TUns32 xStart, TUns32 yStart, TUns32 xEnd, TUns32 yEnd, const IMG_PixmapRGBA32& pixmap,char mode = 'c'); /** * Blends a pixmap into this pixmap over a line in (u,v) coordinates. @@ -88,7 +94,7 @@ public: * @param v v-coordinate of the center location of the image. * @param pixmap the pixmap to blend */ - virtual void blendPixmap(float uStart, float vStart, float uEnd, float vEnd, const IMG_PixmapRGBA32& pixmap); + virtual void blendPixmap(float uStart, float vStart, float uEnd, float vEnd, const IMG_PixmapRGBA32& pixmap,char mode = 'c'); }; -- cgit v1.2.3