Overview

Classes

  • Card
  • CardRegular
  • Component
  • ComponentAvatar
  • ComponentFlag
  • ComponentImage
  • ComponentLabel
  • ComponentXPBar
  • ErrorImage
  • OsuAPI
  • OsuSignature
  • PredefinedColours
  • Signature
  • Template
  • TemplateNormal
  • Utils
  • Overview
  • Class

Class ComponentImage

Simple image component.

Component
Extended by ComponentImage
Author: Lemmmy
See: Component
Located at ComponentImage.php
Methods summary
public
# __construct( OsuSignature $signature, integer $x, integer $y, string|Imagick $image, integer $composite = Imagick::COMPOSITE_DEFAULT, integer $width = -1, integer $height = -1, integer $filter = Imagick::FILTER_CATROM )

Parameters

$signature
The base signature
$x
The X position of this image
$y
The Y position of this image
$image
The actual image location
$composite
The composite mode to use for this image
$width
The width of this image. -1 = default to image size
$height
The height of this image -1 = default to image size
$filter
The Imagick filter to use for the scaling

Overrides

Component::__construct()
public integer
# getWidth( )

Returns

integer
The width of this component. Overridable.

Overrides

Component::getWidth()
public integer
# getHeight( )

Returns

integer
The height of this component. Overridable.

Overrides

Component::getHeight()
public
# draw( OsuSignature $signature )

Draws this component to the signature's canvas.

Draws this component to the signature's canvas.

Parameters

$signature
The signature to draw to.

Overrides

Component::draw()
Constants summary
string IMG_DIRECTORY
# 'img/'
Properties inherited from Component
$usesSpace, $x, $y
API documentation generated by ApiGen