void bx_draw_image_fx ( bx_window  win,
bx_image  image,
int  x,
int  y,
bx_effect  fx 
)

Draws an image on the canvas of a window, eventually combining the backgound of the canvas and the image with 1 special effect among 16.

Parameters:
win the window owning the targeted canvas.
image the image to draw on the canvas.
x,y the position of tha anchor of the image on the canvas, that is, its top left corner.
fx the special effect to apply, in the range from 0 to 15, see bx_effect for available effects.
Returns:
nothing.
Remarks:
  • images can be loaded from a file (gif, jpg, png, ...) with bx_load_image() or bx_load_image_f().
  • the direction of y-axis of the canvas is downward.
  • bx_draw_image_fx() with fx=3= BX_A is equivalent to bx_draw_image().
  • fx do not apply on transparent pixels of the image: the underlying pixels of the canvas will always be visible.


Generated on Fri Oct 10 00:01:00 2008 for bx-lib : the Basic X11 Library tuned for C beginners by  doxygen 1.5.6