C# 클래스 GPS.Utils.OcrClientUtils

Utils is a general utility class that contains helper methods used throughout this application.
파일 보기 프로젝트 열기: ProjPossibility/CSUN-MobileMapMagnifier

공개 메소드들

메소드 설명
GetPhotoBits ( Stream stream ) : byte[]

Returns a byte array with the content of the stream.

LimitPhotoSize ( Stream photoStream, double photoMaxSizeDiagonal ) : Stream

It will ensure that the photo does not exceed a maximum size. If needed the photo is scaled down by preserving its aspect ratio.

메소드 상세

GetPhotoBits() 공개 정적인 메소드

Returns a byte array with the content of the stream.
public static GetPhotoBits ( Stream stream ) : byte[]
stream Stream
리턴 byte[]

LimitPhotoSize() 공개 정적인 메소드

It will ensure that the photo does not exceed a maximum size. If needed the photo is scaled down by preserving its aspect ratio.
public static LimitPhotoSize ( Stream photoStream, double photoMaxSizeDiagonal ) : Stream
photoStream Stream /// The stream that represents the photo as returned by CameraCaptureTask or PhotoChooserTask. ///
photoMaxSizeDiagonal double /// The diagonal of the scaled down photo. ///
리턴 Stream