rowsOfPixelsToDiscardAtTop
TypeScriptgetRowsOfPixelsToDiscardAtTop($self: CVProResRawMetadata_RecommendedCrop): SDKHandleSwift declarationvar rowsOfPixelsToDiscardAtTop: Float32Rows of pixels to discard from the top of the image.
struct · iOS 27.0+ · SDK 27.1
struct RecommendedCropRecommended pixels to discard in the image after raw conversion. The values may be nonintegral due to downscaling, in which case the handling of fractional parts is implementation-dependent.
getRowsOfPixelsToDiscardAtTop($self: CVProResRawMetadata_RecommendedCrop): SDKHandleSwift declarationvar rowsOfPixelsToDiscardAtTop: Float32Rows of pixels to discard from the top of the image.
setRowsOfPixelsToDiscardAtTop($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): voidSwift declarationvar rowsOfPixelsToDiscardAtTop: Float32Rows of pixels to discard from the top of the image.
getPixelsToDiscardAtEndOfEachRow($self: CVProResRawMetadata_RecommendedCrop): SDKHandleSwift declarationvar pixelsToDiscardAtEndOfEachRow: Float32Pixels to discard from the end (right) of each row of the image.
setPixelsToDiscardAtEndOfEachRow($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): voidSwift declarationvar pixelsToDiscardAtEndOfEachRow: Float32Pixels to discard from the end (right) of each row of the image.
getRowsOfPixelsToDiscardAtBottom($self: CVProResRawMetadata_RecommendedCrop): SDKHandleSwift declarationvar rowsOfPixelsToDiscardAtBottom: Float32Rows of pixels to discard from the bottom of the image.
setRowsOfPixelsToDiscardAtBottom($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): voidSwift declarationvar rowsOfPixelsToDiscardAtBottom: Float32Rows of pixels to discard from the bottom of the image.
initPixelsToDiscardAtStartOfEachRowPixelsToDiscardAtEndOfEachRowRowsOfPixelsToDiscardAtTopRowsOfPixelsToDiscardAtBottom(pixelsToDiscardAtStartOfEachRow: SDKHandle, pixelsToDiscardAtEndOfEachRow: SDKHandle, rowsOfPixelsToDiscardAtTop: SDKHandle, rowsOfPixelsToDiscardAtBottom: SDKHandle): CVProResRawMetadata_RecommendedCropSwift declarationinit(pixelsToDiscardAtStartOfEachRow: Float32, pixelsToDiscardAtEndOfEachRow: Float32, rowsOfPixelsToDiscardAtTop: Float32, rowsOfPixelsToDiscardAtBottom: Float32)getPixelsToDiscardAtStartOfEachRow($self: CVProResRawMetadata_RecommendedCrop): SDKHandleSwift declarationvar pixelsToDiscardAtStartOfEachRow: Float32Pixels to discard from the start (left) of each row of the image.
setPixelsToDiscardAtStartOfEachRow($self: CVProResRawMetadata_RecommendedCrop, value: SDKHandle): voidSwift declarationvar pixelsToDiscardAtStartOfEachRow: Float32Pixels to discard from the start (left) of each row of the image.
get zero(): CVProResRawMetadata_RecommendedCropSwift declarationstatic let zero: CVProResRawMetadata.RecommendedCropgetRawValue($self: CVProResRawMetadata_RecommendedCrop): ArrayBufferSwift declarationvar rawValue: Data { get }The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"
initRawValue(rawValue: ArrayBuffer): (CVProResRawMetadata_RecommendedCrop) | nullSwift declarationinit?(rawValue: Data)Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.
No declarations were skipped in this snapshot.