Skip to main content
←API Reference ←com.nianticspatial.nsdk ←CameraIntrinsics

getImageDimensions


Declaration​

open fun getImageDimensions(): IntArray

Summary​

Returns a int[2] containing the image dimensions. The order of values is {width,
height}.


Overload​

open fun getImageDimensions(dimensions: IntArray?, offset: Int)

Summary​

Returns the camera's image dimensions. The order of values is {width, height}.

Parameters​

NameTypeSummary
dimensionsIntArray?
storage for at least 2 ints representing the image's width and height.
offsetInt
the offset in dimensions at which to begin writing the image dimension's values.