Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_set_border ( Imlib_Border *  border  ) 

Parameters:
border The border of the image.
Sets the border of the current context image to the values contained in the Imlib_Border structure border points to.

Definition at line 2051 of file imlib2.c.

{
   ImlibImage         *im;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_set_border", "image", ctx->image);
   CHECK_PARAM_POINTER("imlib_image_set_border", "border", border);
   CAST_IMAGE(im, ctx->image);
   if ((im->border.left == border->left)
       && (im->border.right == border->right)
       && (im->border.top == border->top)
       && (im->border.bottom == border->bottom))
      return;
   im->border.left = border->left;
   im->border.right = border->right;
   im->border.top = border->top;
   im->border.bottom = border->bottom;
   __imlib_DirtyPixmapsForImage(im);
}


Generated by  Doxygen 1.6.0   Back to index