메소드 | 설명 | |
---|---|---|
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.
|
public static GetPhotoBits ( Stream stream ) : byte[] | ||
stream | Stream | |
리턴 | byte[] |
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 |