메소드 | 설명 | |
---|---|---|
BitmapsAreEqual ( |
||
ByteArrayToImage ( byte bytesIn ) : Image | ||
ConvertToIcon ( Image input, Stream output, int size = 16, bool preserveAspectRatio = true ) : void |
Converts a PNG image to a icon (ico)
|
|
GetScaledWidthAndHeight ( int curWidth, int curHeight, int maxWidth, int maxHeight ) : |
||
ImageToByteArray ( Image imageIn ) : byte[] | ||
LoadFileToBitmap ( string path ) : |
||
LoadFileToByteArray ( string path ) : byte[] | ||
ResizeImage ( Image image, int width, int height ) : |
||
ScaleImage ( Image image, int maxWidth, int maxHeight ) : Image |
public static BitmapsAreEqual ( |
||
image1 | ||
image2 | ||
리턴 | bool |
public static ByteArrayToImage ( byte bytesIn ) : Image | ||
bytesIn | byte | |
리턴 | Image |
public static ConvertToIcon ( Image input, Stream output, int size = 16, bool preserveAspectRatio = true ) : void | ||
input | Image | The input stream |
output | Stream | The output stream |
size | int | The size (16x16 px by default) |
preserveAspectRatio | bool | Preserve the aspect ratio |
리턴 | void |
public static GetScaledWidthAndHeight ( int curWidth, int curHeight, int maxWidth, int maxHeight ) : |
||
curWidth | int | |
curHeight | int | |
maxWidth | int | |
maxHeight | int | |
리턴 |
public static ImageToByteArray ( Image imageIn ) : byte[] | ||
imageIn | Image | |
리턴 | byte[] |
public static LoadFileToBitmap ( string path ) : |
||
path | string | |
리턴 |
public static LoadFileToByteArray ( string path ) : byte[] | ||
path | string | |
리턴 | byte[] |
public static ResizeImage ( Image image, int width, int height ) : |
||
image | Image | |
width | int | |
height | int | |
리턴 |
public static ScaleImage ( Image image, int maxWidth, int maxHeight ) : Image | ||
image | Image | |
maxWidth | int | |
maxHeight | int | |
리턴 | Image |