final class ImageWrapper (View source)

Methods

GdImage
getImage()

No description

static self|null
create(int $width, int $height, array|null $background = null)

No description

static self|null
fromString(string $data)

No description

bool
arc(int $centerX, int $centerY, int $width, int $height, int $startAngle, int $endAngle, int $color)

No description

int|false
colorAllocate(int $red, int $green, int $blue)

No description

bool
copyResampled(ImageWrapper $sourceImage, int $destinationX, int $destinationY, int $sourceX, int $sourceY, int $destinationWidth, int $destinationHeight, int $sourceWidth, int $sourceHeight)

No description

bool
filledPolygon(array $points, int $color)

No description

int
height()

No description

bool
jpeg(resource|string|null $file = null, int $quality = -1)

No description

bool
line(int $x1, int $y1, int $x2, int $y2, int $color)

No description

bool
png(resource|string|null $file = null, int $quality = -1, int $filters = -1)

No description

bool
string(int $font, int $x, int $y, string $string, int $color)

No description

int
width()

No description

Details

GdImage getImage()

No description

Return Value

GdImage

static self|null create(int $width, int $height, array|null $background = null)

No description

Parameters

int $width
int $height
array|null $background

Return Value

self|null

static self|null fromString(string $data)

No description

Parameters

string $data

Return Value

self|null

bool arc(int $centerX, int $centerY, int $width, int $height, int $startAngle, int $endAngle, int $color)

No description

Parameters

int $centerX
int $centerY
int $width
int $height
int $startAngle
int $endAngle
int $color

Return Value

bool

int|false colorAllocate(int $red, int $green, int $blue)

No description

Parameters

int $red
int $green
int $blue

Return Value

int|false

bool copyResampled(ImageWrapper $sourceImage, int $destinationX, int $destinationY, int $sourceX, int $sourceY, int $destinationWidth, int $destinationHeight, int $sourceWidth, int $sourceHeight)

No description

Parameters

ImageWrapper $sourceImage
int $destinationX
int $destinationY
int $sourceX
int $sourceY
int $destinationWidth
int $destinationHeight
int $sourceWidth
int $sourceHeight

Return Value

bool

bool filledPolygon(array $points, int $color)

No description

Parameters

array $points
int $color

Return Value

bool

int height()

No description

Return Value

int

bool jpeg(resource|string|null $file = null, int $quality = -1)

No description

Parameters

resource|string|null $file
int $quality

Return Value

bool

bool line(int $x1, int $y1, int $x2, int $y2, int $color)

No description

Parameters

int $x1
int $y1
int $x2
int $y2
int $color

Return Value

bool

bool png(resource|string|null $file = null, int $quality = -1, int $filters = -1)

No description

Parameters

resource|string|null $file
int $quality
int $filters

Return Value

bool

bool string(int $font, int $x, int $y, string $string, int $color)

No description

Parameters

int $font
int $x
int $y
string $string
int $color

Return Value

bool

int width()

No description

Return Value

int