★ wanayoo — archive 1999 http://www.php.net/manual/function.pdf-open-memory-image.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PDF
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
PDF
* PDF_get_info
* PDF_set_info
* PDF_open
* PDF_close
* PDF_begin_page
* PDF_end_page
* PDF_show
* PDF_show_boxed
* PDF_show_xy
* PDF_set_font
* PDF_set_leading
* PDF_set_parameter
* PDF_get_parameter
* PDF_set_value
* PDF_get_value
* PDF_set_text_rendering
* PDF_set_horiz_scaling
* PDF_set_text_rise
* PDF_set_text_matrix
* PDF_set_text_pos
* PDF_set_char_spacing
* PDF_set_word_spacing
* PDF_skew
* PDF_continue_text
* PDF_stringwidth
* PDF_save
* PDF_restore
* PDF_translate
* PDF_scale
* PDF_rotate
* PDF_setflat
* PDF_setlinejoin
* PDF_setlinecap
* PDF_setmiterlimit
* PDF_setlinewidth
* PDF_setdash
* PDF_moveto
* PDF_curveto
* PDF_lineto
* PDF_circle
* PDF_arc
* PDF_rect
* PDF_closepath
* PDF_stroke
* PDF_closepath_stroke
* PDF_fill
* PDF_fill_stroke
* PDF_closepath_fill_stroke
* PDF_endpath
* PDF_clip
* PDF_setgray_fill
* PDF_setgray_stroke
* PDF_setgray
* PDF_setrgbcolor_fill
* PDF_setrgbcolor_stroke
* PDF_setrgbcolor
* PDF_add_outline
* PDF_set_transition
* PDF_set_duration
* PDF_open_gif
* PDF_open_png
* PDF_open_memory_image
* PDF_open_jpeg
* PDF_close_image
* PDF_place_image
* PDF_put_image
* PDF_execute_image
* pdf_add_annotation
* PDF_set_border_style
* PDF_set_border_color
* PDF_set_border_dash
Manual: PDF_open_memory_image
View the source code for this pageSearch the site



Previous page
 PDF_open_png
 Updated
Sat, 12 Aug 2000
PDF_open_jpeg 
Next page


PDF_open_memory_image

(unknown)

PDF_open_memory_image -- Opens an image created with PHP's image functions

Description

int pdf_open_memory_image (int pdf document, int image)

The PDF_open_memory_image() function takes an image created with the PHP's image functions and makes it available for the pdf document. The function returns a pdf image identifier.

Example 1. Including a memory image


<?php
$im = ImageCreate(100, 100);
$col = ImageColorAllocate($im, 80, 45, 190);
ImageFill($im, 10, 10, $col);
$pim = PDF_open_memory_image($pdf, $im);
ImageDestroy($im);
pdf_place_image($pdf, $pim, 100, 100, 1);
pdf_close_image($pdf, $pim);
?>
     

See also PDF_close_image(), PDF_open_jpeg(), PDF_open_gif(), PDF_open_png() PDF_execute_image(), PDF_place_image(), PDF_put_image().


 About Notes


Previous page
 PDF_open_png
 Updated
Sat, 12 Aug 2000
PDF_open_jpeg 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.