pike.git / src / modules / Image / blit.c

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $Id: blit.c,v 1.7 1997/04/09 01:49:42 mirar Exp $ */ + /* $Id: blit.c,v 1.8 1997/04/18 06:47:18 mirar Exp $ */   #include "global.h"      /*   **! module Image   **! class image   */      #include <math.h>   #include <ctype.h>   
pike.git/src/modules/Image/blit.c:218:    newimg->rgb=img->rgb;   }      /*   **! method object paste(object image)   **! method object paste(object image,int x,int y)   **! Pastes a given image over the current image.   **!   **! returns the object called   **! - **! object image + **! arg object image   **! image to paste - **! int x - **! int y + **! arg int x + **! arg int y   **! where to paste the image; default is 0,0   **!   **! see also: paste_mask, paste_alpha, paste_alpha_color   */      void image_paste(INT32 args)   {    struct image *img;    INT32 x1,y1,x2,y2,blitwidth,blitheight;   
pike.git/src/modules/Image/blit.c:282:   **! method object paste_alpha(object image,int alpha,int x,int y)   **! Pastes a given image over the current image, with   **! the specified alpha channel value.   **!   **! An alpha channel value of 0 leaves nothing of the original   **! image in the paste area, 255 is meaningless and makes the   **! given image invisible.   **!   **! returns the object called   **! - **! object image + **! arg object image   **! image to paste - **! int alpha + **! arg int alpha   **! alpha channel value - **! int x - **! int y + **! arg int x + **! arg int y   **! where to paste the image; default is 0,0   **!   **! see also: paste_mask, paste, paste_alpha_color   */      void image_paste_alpha(INT32 args)   {    struct image *img;    INT32 x1,y1,x,y;   
pike.git/src/modules/Image/blit.c:347:   **! Pastes a given image over the current image,   **! using the given mask as opaque channel.   **!   **! A pixel value of 255 makes the result become a pixel   **! from the given image, 0 doesn't change anything.   **!   **! The masks red, green and blue values are used separately.   **!   **! returns the object called   **! - **! object image + **! arg object image   **! image to paste - **! object mask + **! arg object mask   **! mask image - **! int x - **! int y + **! arg int x + **! arg int y   **! where to paste the image; default is 0,0   **!   **! see also: paste, paste_alpha, paste_alpha_color   */      void image_paste_mask(INT32 args)   {    struct image *img,*mask;    INT32 x1,y1,x,y,x2,y2,smod,dmod,mmod;    rgb_group *s,*d,*m;
pike.git/src/modules/Image/blit.c:451:   **! using the given mask as opaque channel.   **!   **! A pixel value of 255 makes the result become the color given,   **! 0 doesn't change anything.   **!   **! The masks red, green and blue values are used separately.   **! If no color are given, the current is used.   **!   **! returns the object called   **! - **! object mask + **! arg object mask   **! mask image - **! int r - **! int g - **! int b + **! arg int r + **! arg int g + **! arg int b   **! what color to paint with; default is current - **! int x - **! int y + **! arg int x + **! arg int y   **! where to paste the image; default is 0,0   **!   **! see also: paste_mask, paste_alpha, paste_alpha_color   */      void image_paste_alpha_color(INT32 args)   {    struct image *img,*mask;    INT32 x1,y1,x,y,x2,y2;    rgb_group rgb,*d,*m;