35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using Aurora.Api.DataType;
|
|
|
|
namespace VisionCommon {
|
|
/// <summary>
|
|
/// 패턴 썸네일 유틸 틀래스
|
|
/// </summary>
|
|
public static class ThumbnailUtil {
|
|
/// <summary>썸네일 이미지 폭(가로)</summary>
|
|
public static int ImageWidth = 50;
|
|
/// <summary>썸네일 이미지 높이(세로)</summary>
|
|
public static int ImageHeight = 50;
|
|
|
|
/// <summary>
|
|
/// 썸네일의 이미지 사이즈 정보를 얻어온다.
|
|
/// </summary>
|
|
/// <returns>이미지 사이즈 정보</returns>
|
|
public static ImageSize GetImageSize() {
|
|
return new ImageSize() {
|
|
Width = ImageWidth,
|
|
Height = ImageHeight,
|
|
BitDepth = 8,
|
|
Channel = 3
|
|
};
|
|
}
|
|
|
|
/// <summary>
|
|
/// 기본 썸네일 이미지
|
|
/// </summary>
|
|
/// <returns>썸네일 비트맵</returns>
|
|
public static System.Drawing.Bitmap GetDefaultImage() {
|
|
return new System.Drawing.Bitmap(ImageWidth, ImageHeight);
|
|
}
|
|
}
|
|
}
|