|
CairoMatrix::initTranslatecairo_matrix_init_translateCreates a new translation matrix BeschreibungObjektorientierter Stil (method):
public static void CairoMatrix::initTranslate
( float
$tx
, float $ty
)Prozeduraler Stil:
object cairo_matrix_init_translate
( float
$tx
, float $ty
)Creates a new matrix to a transformation that translates by tx and ty in the X and Y dimensions, respectively. Parameter-Liste
RückgabewerteReturns a new CairoMatrix object that can be used with surfaces, contexts, and patterns. Beispiele
Beispiel #1 Objektorientierter Stil
<?php
Beispiel #2 Prozeduraler Stil
<?phpSiehe auch
|