StreamConfigurationMap.GetValidOutputFormatsForInput(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the image format
output formats for a reprocessing input format.
[Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)]
public int[]? GetValidOutputFormatsForInput (int inputFormat);
[<Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)>]
member this.GetValidOutputFormatsForInput : int -> int[]
Parameters
- inputFormat
- Int32
Returns
an array of integer format
- Attributes
Remarks
Get the image format
output formats for a reprocessing input format.
When submitting a CaptureRequest
with an input Surface of a given format, the only allowed target outputs of the CaptureRequest
are the ones with a format listed in the return value of this method. Including any other output Surface as a target will throw an IllegalArgumentException. If no output format is supported given the input format, an empty int[] will be returned.
All image formats returned by this function will be defined in either ImageFormat
or in PixelFormat
(and there is no possibility of collision).
Formats listed in this array are guaranteed to return true if queried with #isOutputSupportedFor(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.