<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML> <HEAD><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <TITLE>decorate - ImageMagick Image Decoration Methods</TITLE> <link rel="StyleSheet" href="../magick.css" type="text/css"> </HEAD> <body bgcolor="#FFFFFF" text="#000000" link="#0085c0" alink="#0085c0" vlink="#800080"> <A NAME="__index__"></A> <!-- INDEX BEGIN --> <UL> <LI><A HREF="#name"> <FONT SIZE=-1>NAME</FONT></A> <LI><A HREF="#synopsis"> <FONT SIZE=-1>SYNOPSIS</FONT></A> <LI><A HREF="#function descriptions"> <FONT SIZE=-1>FUNCTION</FONT> <FONT SIZE=-1>DESCRIPTIONS</FONT></A> <UL> <LI><A HREF="#borderimage">BorderImage</A> <LI><A HREF="#frameimage">FrameImage</A> <LI><A HREF="#raiseimage">RaiseImage</A> </UL> </UL> <!-- INDEX END --> <HR> <P> <H1><A NAME="name"> <FONT SIZE=-1>NAME</FONT></A></H1> <P>decorate - ImageMagick Image Decoration Methods</P> <P> <HR> <H1><A NAME="synopsis"> <FONT SIZE=-1>SYNOPSIS</FONT></A></H1> <P>Image * <STRONG>BorderImage</STRONG>( const Image *image, const RectangleInfo *border_info, ExceptionInfo *exception );</P> <P>Image * <STRONG>FrameImage</STRONG>( const Image *image, const FrameInfo *frame_info, ExceptionInfo *exception );</P> <P>unsigned int <STRONG>RaiseImage</STRONG>( Image *image, const RectangleInfo *raise_info, const int raised );</P> <P> <HR> <H1><A NAME="function descriptions"> <FONT SIZE=-1>FUNCTION</FONT> <FONT SIZE=-1>DESCRIPTIONS</FONT></A></H1> <P> <H2><A NAME="borderimage">BorderImage</A></H2> <blockquote>BorderImage() surrounds the image with a border of the color defined by the bordercolor member of the image structure. The width and height of the border are defined by the corresponding members of the border_info structure. </blockquote><P>The format of the BorderImage method is:</P> <blockquote><A HREF="types/Image.html">Image</A> *BorderImage ( const <A HREF="types/Image.html">Image</A> *image, const <A HREF="types/RectangleInfo.html">RectangleInfo</A> *border_info, <A HREF="types/ExceptionInfo.html">ExceptionInfo</A> *exception ); </blockquote><P> <FONT SIZE=-1>A</FONT> description of each parameter follows:</P> <DL><DT><DD><DL> <dd><p></p><dt><STRONG><A NAME="item_o_image%3A">image:</A></STRONG><BR> <DD> The image. <P></P> <dd><p></p><dt><STRONG><A NAME="item_o_border_info%3A">border_info:</A></STRONG><BR> <DD> Define the width and height of the border. <P></P> <dd><p></p><dt><STRONG><A NAME="item_o_exception%3A">exception:</A></STRONG><BR> <DD> Return any errors or warnings in this structure. <P></P></DL></DL> <P> <H2><A NAME="frameimage">FrameImage</A></H2> <blockquote>FrameImage() adds a simulated three-dimensional border around the image. The color of the border is defined by the matte_color member of image. Members width and height of frame_info specify the border width of the vertical and horizontal sides of the frame. Members inner and outer indicate the width of the inner and outer shadows of the frame. </blockquote><P>The format of the FrameImage method is:</P> <blockquote><A HREF="types/Image.html">Image</A> *FrameImage ( const <A HREF="types/Image.html">Image</A> *image, const <A HREF="types/FrameInfo.html">FrameInfo</A> *frame_info, <A HREF="types/ExceptionInfo.html">ExceptionInfo</A> *exception ); </blockquote><P> <FONT SIZE=-1>A</FONT> description of each parameter follows:</P> <DL><DT><DD><DL> <dd><p></p><dt><STRONG>image:</STRONG><BR> <DD> The image. <P></P> <dd><p></p><dt><STRONG><A NAME="item_o_frame_info%3A">frame_info:</A></STRONG><BR> <DD> Define the width and height of the frame and its bevels. <P></P> <dd><p></p><dt><STRONG>exception:</STRONG><BR> <DD> Return any errors or warnings in this structure. <P></P></DL></DL> <P> <H2><A NAME="raiseimage">RaiseImage</A></H2> <blockquote>RaiseImage() creates a simulated three-dimensional button-like effect by lightening and darkening the edges of the image. Members width and height of raise_info define the width of the vertical and horizontal edge of the effect. </blockquote><P>The format of the RaiseImage method is:</P> <blockquote>unsigned int RaiseImage ( <A HREF="types/Image.html">Image</A> *image, const <A HREF="types/RectangleInfo.html">RectangleInfo</A> *raise_info, const int raised ); </blockquote><P> <FONT SIZE=-1>A</FONT> description of each parameter follows:</P> <DL><DT><DD><DL> <dd><p></p><dt><STRONG>image:</STRONG><BR> <DD> The image. <P></P> <dd><p></p><dt><STRONG><A NAME="item_o_raise_info%3A">raise_info:</A></STRONG><BR> <DD> Define the width and height of the raised area. <P></P> <dd><p></p><dt><STRONG><A NAME="item_o_raised%3A">raised:</A></STRONG><BR> <DD> <FONT SIZE=-1>A</FONT> value other than zero creates a <FONT SIZE=-1>3-D</FONT> raised effect, otherwise it has a lowered effect. </DL></DL> </BODY> </HTML>