LetterCommand
class LetterCommand extends AbstractCommand implements CommandInterface
기준 사이즈 안에 이미지가 모두 들어오도록 하는 리사이징 command
Properties
protected Dimension | $dimension | Dimension interface | from AbstractCommand |
protected Dimension | $originDimension | Origin dimension | from AbstractCommand |
Methods
string
getName()
Specific command name
string
getMethod()
Executed command method name
array
getExecArgs()
Arguments of executed method
array
remakeDimensionAsRatio(int $srcWidth, int $srcHeight, int $dstWidth, int $dstHeight)
get new dimension by keeping the ratio
Details
in AbstractCommand at line 51
void
setDimension(Dimension $dimension)
Set a dimension
in AbstractCommand at line 62
void
setOriginDimension(Dimension $dimension)
Set origin dimension
in AbstractCommand at line 72
Dimension
getDimension()
Get a dimension
in AbstractCommand at line 82
Dimension
getOriginDimension()
Get a dimension
at line 36
string
getName()
Specific command name
at line 46
string
getMethod()
Executed command method name
at line 56
array
getExecArgs()
Arguments of executed method
at line 75
private array
remakeDimensionAsRatio(int $srcWidth, int $srcHeight, int $dstWidth, int $dstHeight)
get new dimension by keeping the ratio