Click or drag to resize

BgfxImageRgba8Downsample2x2 Method

Downsamples an RGBA8 image with a 2x2 pixel average filter.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void ImageRgba8Downsample2x2(
	IntPtr destination,
	int width,
	int height,
	int pitch,
	IntPtr source
)

Parameters

destination
Type: SystemIntPtr
The destination image data.
width
Type: SystemInt32
The width of the image.
height
Type: SystemInt32
The height of the image.
pitch
Type: SystemInt32
The pitch of the image (in bytes).
source
Type: SystemIntPtr
The source image data.
Remarks
This method can operate in-place on the image (i.e. src == dst).
See Also