CreateImageFromSurface
Creates a depth image from the Z-values of the input surface.
Applications:Allows for performing 2D operations on 3D data.
Syntax
C++
C#
Python
def CreateImageFromSurface( inSurface: Surface, inResampleSurfaceMode: ResampleSurfaceMode, outImage: Image, /, *, inPixelType: PlainType = PlainType.Real, inXOffset: float | None = None, inYOffset: float | None = None, inPixelOffset: float | None = None, inPixelScale: float | None = 1.0, inMissingPointValue: float | None = 0.0, outSurfaceFormat: SurfaceFormat | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | Input surface | ||
![]() |
inPixelType | PlainType | PlainType.Real | Output image pixel type | |
![]() |
inResampleSurfaceMode | ResampleSurfaceMode | |||
![]() |
inXOffset | float | None | None | Offset for the X axis of the output image; if set to Nil, surface X offset is chosen | |
![]() |
inYOffset | float | None | None | Offset for the Y axis of the output image; if set to Nil, surface Y offset is chosen | |
![]() |
inPixelOffset | float | None | None | Offset that the input surface values have in the output image; if set to Nil, surface Z offset is chosen | |
![]() |
inPixelScale | float | None | 0.0D - ![]() |
1.0 | Scale that the input surface values have in the output image; if set to Nil, surface Z scale is chosen |
![]() |
inMissingPointValue | float | None | 0.0 | Value assigned to pixels where point is undefined | |
![]() |
outImage | Image | Input surface depth image | ||
![]() |
outSurfaceFormat | SurfaceFormat | None | None | Format of the surface that the output image represents |



