int Height { get; set; }

robot_2Generated
code_blocksInput

Description

The Height property of the RenderTarget class represents the height of the render target in pixels. This property is used to determine the vertical dimension of the render target texture, which is essential for rendering operations that require knowledge of the texture's size.

Usage

To access the Height property, you need to have an instance of the RenderTarget class. You can then retrieve the height value as follows:

Example

RenderTarget renderTarget = RenderTarget.GetTemporary(1920, 1080, ImageFormat.RGBA8, ImageFormat.Depth24, MultisampleAmount.None, 1);
int height = renderTarget.Height;
// Use the height value for rendering calculations or adjustments
renderTarget.Dispose();