English 中文(简体)
在构造ImagickPixel时建立甲型频道
原标题:Setting an alpha channel when constructing an ImagickPixel

我是使用图像Magick的新鲜事。 我正在使用最新的《植物检疫扩展》(3.1.0rc1)和《植物检疫法》。 然而,关于神灵的文件似乎有些松散。

我想创设一个documentation 指出这些是向建筑商传递的一些有效颜色价值:blue”、“#0000ff”、“rgb(0,0,255)”、“cmyk(100,100,100,10)”等

我知道,有可能利用<条码>将ImagickPixel的甲型数值重新计算(星号:COLOR_ALPHA);。

因此,我如何能够在标的初始化过程中通过向构造者穿过甲型频道,形成一个rg子的彩色?

最佳回答

想像这样做的办法是只使用rg:

$myImagickPixel = new ImagickPixel("rgba(250,15,150,0)"); //Where the last digit is the alpha and 0 is transparent and 1 is fully opaque.
问题回答

我发现了一些关于允许格式的文件:

http://www.imagemagick.org/script/color.php

你们想要采用的形式是“#巴”,这样半透明的红色是“#FF00007F”。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签