(PHP 4 >= 4.0.6, PHP 5)
imagecreatetruecolor-Create a new true color image
Description
Resource Imagecreatetruecolor (int $x _size, int $y _size)
Imagecreatetruecolor () returns an image identifier representing a black image with a size of x_size
(PHP 4 >= 4.0.6, PHP 5)
imagecreatetruecolor-Create a new true color image
Description
Resource Imagecreatetruecolor (int $x _size, int $y _size)
Imagecreatetruecolor () returns an image identifier that represents a black image with a size of
PHP Imagecreatetruecolor Image croppingAny image cropped to a fixed size, the image is not deformed, the blank stretch fill, the image is always paved, do not leave blank, used bcastr friends should know, BCASTR is to ensure that the image call is
Common feature: both functions are used to create a canvas.
Differences:
1. The process of creating a canvas and filling the canvas with colors is different;
Imagecreatetruecolor (int x, int Y) is used to create an image of X and Y (black by default
Php imagecreatetruecolor creates a high-definition image FunctionImagecreatetruecolor () returns an image identifier representing a black image of the specified size.
Based on the Function Definition in your PHP and GD versions. For PHP 4.0.6, the
Php imagecreatetruecolor creates a high-definition image functionImagecreatetruecolor () returns an image identifier representing a black image of the specified size.Based on the function definition in your PHP and GD versions. For PHP 4.0.6, the
If you have any questions about imagecreatetruecolor, contact us. The gd Library is enabled both locally and on the server.
Then run
$im = @imagecreatetruecolor(2032,5520);var_dump($im);exit;
Local direct return
Resource (24) of type (gd)
01. php
/*
Drawing with Windows graphic Board
1: Create a canvas and set the size.
2: Create a pigment. (red, r Green G blue B, composed of three primary colors. The primary colors can be 0-from weak to strong ).
3: draw lines, write, draw
Php thumbnails generate several code methods. 1. the imagecreatetruecolor function is used to create a black background image. The first parameter is the width of the created image, and the second parameter is the created image. the
1. From which we can see that the function of the imagecreatetruecolor is obviously to create a black background picture, its first parameter is the width of the created picture, the second parameter is the height of the created picture, we put the
Php creates non-distorted HD image implementation code. In php, the imagecreatetruecolor function must be used to generate high-definition images. The following describes how to use imagecreatetruecolor (intx, inty) to create a black image with a
1. From which we can see the role of the Imagecreatetruecolor function is obviously to create a black background image, its first parameter is the width of the created picture, the second parameter is the height of the created picture, we put the
Image processing functions: Zoom, cut, frame, watermark, sharpen, rotate, flip, transparency, invert color, process and save the history of the idea: when there are changes in the picture to automatically generate a new picture, naming method can be
Very powerful PHP image processing class, you can customize the image watermark, transparency, image scaling, image sharpening, picture rotation, picture flipping, picture cutting, picture inverse color. The specific code is as follows:
/***
Note: If you want to use PHP GD processing we need to open the GD library
GD Library support for PHP under Windows
Find php.ini, open content, find:
; Extension=php_gd2.dll
Put the front semicolon ";" Remove, then save, if there is no semicolon,
#*********************************************************
#文件名称:
inc_class.upload.php
#Copyright (c)
2007-2009 Youth once all rights reserved.
#最后更新: 2009-08-05
#版本: v 2.0.a
#注: Please keep this declaration information when forwarding, this
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.