C# 클래스 ImageProcessor.UnitTests.AssertionHelpers

Provides helpers for asserting
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor 1 사용 예제들

공개 메소드들

메소드 설명
AssertImagesAreDifferent ( Image expected, Image tested, string because ) : void

Asserts that two images are different

AssertImagesAreIdentical ( Image expected, Image tested, string because ) : void

Asserts that two images are identical

ToByteArray ( Image imageIn ) : byte[]

Converts an image to a byte array

메소드 상세

AssertImagesAreDifferent() 공개 정적인 메소드

Asserts that two images are different
public static AssertImagesAreDifferent ( Image expected, Image tested, string because ) : void
expected System.Drawing.Image /// The not-expected result ///
tested System.Drawing.Image /// The tested image ///
because string /// The because message. ///
리턴 void

AssertImagesAreIdentical() 공개 정적인 메소드

Asserts that two images are identical
public static AssertImagesAreIdentical ( Image expected, Image tested, string because ) : void
expected System.Drawing.Image /// The expected result ///
tested System.Drawing.Image /// The tested image ///
because string /// The because message. ///
리턴 void

ToByteArray() 공개 정적인 메소드

Converts an image to a byte array
public static ToByteArray ( Image imageIn ) : byte[]
imageIn System.Drawing.Image The image to convert
리턴 byte[]