Class: Pixmap
Lua
C++
Edit

Pixmap::Sample

This method retrieves a pixel sample using bilinear filtering to smoothly interpolate between pixels.

Syntax

Parameter Description
(u, v), coords sample coordinate or pixel

Returns

Returns a bilinear filtered pixel sample at the specified coordinate.

If the pixmap uses a compressed format Vec4(0) will be returned.

Remarks

Float coordinates will be clamped to the range 0.0-1.0.

If coord is an iVec2 bilinear filtering will not be used.

Copyright © 2024 Ultra Software.
All rights reserved.