메소드 | 설명 | |
---|---|---|
Base64ToBytes ( string base64 ) : byte[] |
Converts a base 64 encoded string to a byte array.
|
|
Base64ToImage ( string base64 ) : Image |
Converts a base 64 encoded string to an image.
|
|
BitmapDiff ( |
Compares two bitmaps pixel-by-pixel and returns a bitmap mask of the difference.
|
|
BytesToBase64 ( byte bytes ) : string |
Converts a byte array to a base 64 encoded string.
|
|
BytesToImage ( byte imageBytes ) : Image |
Converts a byte array to an image.
|
|
CropImage ( Image image, |
Crops the image to the specified rectangle.
|
|
DrawRegionAsMasks ( |
Draws the region as green, and the inverted region as red.
|
|
GetClippedImage ( |
Clips an image to the specified region.
|
|
GetClippedRegion ( |
Calculates the region of the rectangle that is not overlapped by siblings or children.
|
|
ImageToBase64 ( Image image, |
Converts an image to a base 64 encoded string.
|
|
ImageToBytes ( Image image, |
Converts an image to a byte array.
|
|
IsColorMatch ( Color color1, Color color2 ) : bool |
Determines if two colors are equivalent.
|
|
SaveImageToDisc ( string outputDir, string base64Image, string imageSuffix ) : string |
Saves the specified image to disc.
|
public static Base64ToBytes ( string base64 ) : byte[] | ||
base64 | string | The base 64 encoded image. |
리턴 | byte[] |
public static Base64ToImage ( string base64 ) : Image | ||
base64 | string | The base 64 encoded image. |
리턴 | Image |
public static BitmapDiff ( |
||
bitmapA | The first bitmap. | |
bitmapB | The second bitmap. | |
ia | The image attributes. | |
percentageDifferent | decimal | The difference between the two images as a percentage. |
리턴 |
public static BytesToBase64 ( byte bytes ) : string | ||
bytes | byte | The byte array. |
리턴 | string |
public static BytesToImage ( byte imageBytes ) : Image | ||
imageBytes | byte | The byte array. |
리턴 | Image |
public static CropImage ( Image image, |
||
image | Image | The image. |
cropArea | The cropping rectangle. | |
리턴 | Image |
public static DrawRegionAsMasks ( |
||
size | The size of the image. | |
region | The clipping region. | |
image | Image | The image. |
ia | The iamge attributes (such as alpha blending) to use when drawing the masks. | |
리턴 |
public static GetClippedImage ( |
||
size | The size of the image. | |
image | Image | The image. |
region | The region to clip. | |
리턴 |
public static GetClippedRegion ( |
||
rectangle | The rectangle. | |
potentialIntersections | IEnumerable |
An array of potentially intersecting rectangles. |
리턴 |
public static ImageToBase64 ( Image image, |
||
image | Image | The image. |
format | The image format. | |
리턴 | string |
public static ImageToBytes ( Image image, |
||
image | Image | The image. |
format | The image format. | |
리턴 | byte[] |
public static IsColorMatch ( Color color1, Color color2 ) : bool | ||
color1 | Color | The first color. |
color2 | Color | The second color. |
리턴 | bool |
public static SaveImageToDisc ( string outputDir, string base64Image, string imageSuffix ) : string | ||
outputDir | string | The target directory. |
base64Image | string | The image as a base64 encoded string. |
imageSuffix | string | The filename suffix. |
리턴 | string |