Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChartLegendAppearance.ImageSize Property

Specifies pixel dimensions of the area allocated to a legend item image.

#Declaration

Delphi
property ImageSize: TdxSizeFloat read; write;

#Property Value

Type Description
TdxSizeFloat

ImageSize.Width and ImageSize.Height property values specify width and height (in pixels) of the area allocated to a legend item glyph at 96 DPI.

#Remarks

Use ImageSize.Width and ImageSize.Height properties to shrink or expand areas allocated to legend item images within the legend pane layout.

#Property Value Examples

ImageSize.Width Value ImageSize.Height Value Example[1]
20 16[2] VCL Chart Control: The Default Glyph Dimensions in the Diagram Legend Pane
10 8 VCL Chart Control: Shrunk Glyphs in the Diagram Legend Pane
30 24 VCL Chart Control: Increased Glyphs in the Diagram Legend Pane

#Property Values and Scaling

ImageSize.Width and ImageSize.Height properties specify the base pixel dimensions of a legend item area that correspond to 96 DPI. The Chart control’s draw routines multiply ImageSize.Width and ImageSize.Height property values by the current scale factor and round the results to the nearest integer to calculate the actual item image dimensions on the target screen.

#Default Value

The ImageSize property’s default value is the DefaultImageSize typed constant.

Footnotes
  1. These examples demonstrate different ImageSize.Width and ImageSize.Height property values for the same XY diagram with three simple Line series.

  2. The default glyph dimensions.

See Also