FrameMaker | ||
presentations | codes | |
$frame = new FrameMaker(); $frame->set_picture("pictures/autumn.jpg"); $frame->set_border(8,"#FFCC00","raised"); $frame->show_picture(); |
||
$frame = new FrameMaker(); $frame->set_picture("pictures/forest.jpg"); $frame->set_border(20,"#009933","bevel"); $frame->set_margin(30,"#D8F0A6",10,"oval"); $frame->show_picture(); |
||
$frame = new FrameMaker(); $frame->set_picture("pictures/sunset.jpg"); $frame->set_material("materials/wood1.jpg"); $frame->set_margin(1,"#FFFFCC"); $frame->show_picture(); |
||
include("digidisplayer.php"); include("framemaker.php"); $rand_number = rand(32441234,99875432); $frame = new FrameMaker(); |
Class FrameMaker | This class sets a frame around the graph screen. It can make your pictures have a better appeal. |
FrameMaker() | Constructor. |
set_picture($pic) | Set picture/graph to be framed. ie: set_picture("pictures/forest.jpg"); |
set_image($img) | Set image to be framed. $img = imagecreate(100,100); This function is usefull to generate frame around "on the fly image". |
set_material($pic) | Optional. Set frame material if any. ie: set_picture("materials/wood.jpg"); |
set_size($width,$height) | If you want to create blank frame, call this function to set the dimension. |
set_border($width=2,$color="#000000",$style="solid") | Border setting. $width - in pixel $color - in hex $style - solid, sunken, bevel, raised, gradient |
set_margin( $width, $color="#FFFFFF",$liner,$shape ) | Optional. Margin between border and picture. $liner - in pixel $shape - rectangle, oval |
show_picture($type="jpg") | Output. |
Huda M Elmatsani - 8 August 2004 | SAMPLE MATERIAL IMAGES (square) |