Maintains a collection of SVG sizes for associated screen scales. Each FMX.RS.SVGImgList.TSVGSize item specifies the Width and Height of the bitmap to generate from an SVG for a given screen scale. The FMX.RS.SVGImgList.TRSSVGImageList component uses TSVGSize items to generate bitmaps at run-time at the desired size based on the current screen scale.
Namespace: FMX.RS.SVGImgList
TOwnedCollection
FMX.RS.SVGImgList.TSVGSizes
|
Delphi
|
type
TSVGSizes = class(TOwnedCollection)
end;
|
|
Name
|
Description
|
|
Items[Integer]
|
Represents property Items[Integer].
|
|
OnChange
|
Defines a Change event handler for when the TSVGSizes collection changes. The Sender parameter will equal the Item that changed or nil if the whole collection changed.
|
Top
|
|
Name
|
Description
|
|
Add
|
Represents method Add.
|
|
ChooseSize(Single)
|
Returns the index of a size item from the collection based on the specified screen scale. The method tries to find an exact scale match. If no sizes in the collection have an exact scale match, it chooses the next larger scale size.
|
|
FindItemID(Integer)
|
Represents method FindItemID(Integer).
|
|
Insert(Integer)
|
Represents method Insert(Integer).
|
|
ScaleSize(Single,Integer,Integer)
|
Overloaded. Updates the Width and Height of all TSVGSize that equal the specified screen Scale in the collection. The new Width and Height equal the aWidth and aHeight parameters If the scale parameter is -1, it updates ALL items in the list to the aWidth and aHeight parameters.
|
|
ScaleSize(Single,Single,Single)
|
Overloaded. Updates the Width and Height of all TSVGSize that equal the specified screen Scale in the collection. The Width and Height equal the size multiplied by the DX and DY parameters. If the scale parameter is -1, it updates ALL items in the list.
|
|
Update(TCollectionItem)
|
Represents method Update(TCollectionItem).
|
Top
|