Help Center

CGpGraphics.GetRenderingOriginmethod

Gets the rendering origin currently set for this **Graphics** object.

GraphicsmethodCGpGraphics.incdocumented

Syntax

FUNCTION GetRenderingOrigin (BYVAL x AS LONG PTR, BYVAL y AS LONG PTR) AS GpStatus

Parameters

NameDescription
xPointer to an LONG that receives the x-coordinate of the rendering origin
yPointer to an LONG that receives the y-coordinate of the rendering origin.

Return value

If the function succeeds, it returns StatusOk, which is an element of the GpStatus enumeration.

If the function fails, it returns one of the other elements of the GpStatus enumeration.

Description

Gets the rendering origin currently set for this Graphics object. The rendering origin is used to set the dither origin for 8-bits per pixel and 16-bits per pixel dithering and is also used to set the origin for hatch brushes.

Reference

  • Include file CGpGraphics.inc
  • Defined in AfxNova/CGpGraphics.inc:137
  • Documented in Graphics/GdiPlus Classes/CGpGraphics Classes.md
  • Topic: CGpGraphics Class