[Overview][Constants][Types][Classes][Index] Reference for unit 'ptc' (#ptc)

IPTCSurface.Pitch

Gets the pitch of the surface in bytes.

Declaration

Source position: basesurfaced.inc line 75

property IPTCSurface.Pitch: Integer
  read GetPitch;

Description

Gets the pitch of the surface in bytes. The pitch is the number of bytes between the start of each horizonal line of pixel memory. The pitch may be any value - even negative! Do not make any assumptions about the layout of IPTCSurface pixel memory, always check the pitch!

Errors

TPTCError - a TPTCError exception is raised on failure.