Login   Register  
PHP Classes
elePHPant
Icontem

File: Examples/Background_Example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tufan Baris YILDIRIM  >  Image Processor (CSS)  >  Examples/Background_Example.php  >  Download  
File: Examples/Background_Example.php
Role: Example script
Content type: text/plain
Description: background image repeat example
Class: Image Processor (CSS)
Draw images defined with CSS like properties
Author: By
Last change: path...
Date: 2010-03-04 12:16
Size: 558 bytes
 

Contents

Class file image Download
<?php
  
include '../D3Image.php';
  
// Creating Small Signature Image
  
$image=new D3Image('width:150px;height:30px;background:#000;');
  
$image->Write('D3Image v1.0','font-size:12px;color:#FFFFFF;align:center');
  
  
  
$bg=new D3Image('width:500px;height:500px;background:#fff');
  
$bg->BackGroundImage('../images/mypic.jpg','repeat:yx;width:50;height:50;top:0px;left:0px;padding:3px;');
  
$bg->Add($image,'align:bottom right;opacity:60'); // Signature Adding to right bottom of image
  
$bg->SaveToFile('../background.jpg');
  
$bg->Show();
?>