CairoFormat::strideForWidth

(PECL cairo >= 0.1.0)

CairoFormat::strideForWidthProvides an appropriate stride to use

说明

public static CairoFormat::strideForWidth ( int $format , int $width ) : int

This method provides a stride value that will respect all alignment requirements of the accelerated image-rendering code within cairo.

参数

format

The desired CairoFormat to use

width

The width of the image

返回值

The appropriate stride to use given the desired format and width, or -1 if either the format is invalid or the width too large.

范例

Example #1 CairoFormat::strideForWidth() example

<?php
/* ... */
?>

以上例程的输出类似于:

...

参见

  • Classname::Method()

相关文章
php cairoformat provides an appropriate stride to usephp eventsslcontext constructs an openssl context for use with event classesphp bbcode 函数 attach another parser in order to use another rule set for argument parsingphp enchant 函数 declares a preference of dictionaries to use for the languagephp ingres 函数 escape special characters for use in a queryphp maxdb 函数 initializes maxdb and returns an resource for use with maxdb real connectphp maxdb 函数 escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp ncurses 函数 control use of environment information about terminal sizephp ncurses 函数 control use of extended names in terminfo descriptionsphp pdf 函数 use image data deprecated php ps 函数 sets font to use for following outputphp sqlite 函数 escapes a string for use as a query parameterphp soap 函数 set whether to use the soap error handlerphp imagickdraw sets the opacity to use when drawing using the fill color or fill texturephp imagickdraw sets the opacity to use when drawing using the fill color or fill texturephp intldateformatter sets the time zone to usephp mongodb bson serializable provides an array or document to serialize as bsonphp ktaglib mpeg file returns an object that provides access to the audio propertiesphp mysqlnduhconnection escapes special characters in a string for use in an sql statement taking into account the current charset of the connectionphp pharexception the pharexception class provides a phar specific exception class for try/catch blocks
关注编程学问公众号