메소드 | 설명 | |
---|---|---|
Colors ( int numberOfColors ) : |
Control the palette size of PNG and GIF images. If omitted, PNGs will be 24-bit. (PrettyGifs plugin required)
|
|
Format ( OutputFormat format ) : |
Sets the output format to use. By default, the original format (or the closest match) is used.
|
|
Quality ( int compression ) : |
Sets the Jpeg compression for the image
|
|
SpeedOrQuality ( int quality ) : |
Gain a 15-30% speed boost by sacrificing rendering quality. For more information see http://imageresizing.net/plugins/speedorquality.
|
메소드 | 설명 | |
---|---|---|
OutputExpression ( |
public Colors ( int numberOfColors ) : |
||
numberOfColors | int | A number between 2 and 255 |
리턴 |
public Format ( OutputFormat format ) : |
||
format | OutputFormat | The desired output format |
리턴 |
public Quality ( int compression ) : |
||
compression | int | Jpeg compression: 0-100 100=best, 90=very good balance, 0=ugly |
리턴 |
public SpeedOrQuality ( int quality ) : |
||
quality | int | A value between 0 (highest quality) and 3 (lowest quality, highest speed) |
리턴 |