Defines a TImageList composed entirely of SVGs to enable compact, graphical support of different screen resolutions and densities.
TImageList components represent a collection of same sized images, each of which can be referred to by its index. The TRSSVGImageList component defines a TImageList composed entirely of SVGs, which can regenerate bitmaps when the Width and Height of the imagelist changes.
The RSSVGImgList.TRSSVGImageList.Items property contains the list of SVGs in the imagelist.
Note
|
The TRSSVGImageList (VCL) supports the notion of Master and Dependent SVG Image Lists. A master image list contains the SVGs for the entire application. Dependent image lists then reference the master through the RSSVGImgList.TRSSVGImageList.MasterImageList property. Dependent image lists do not actually contain any SVGs; rather, they use the master image list to supply the SVGs and generate bitmaps from the master's SVG at different resolutions. This architecture saves memory as well as allows you to centralize all your SVGs in one location in your application.
|
Note
|
The SVGs are embedded into the form or data module and do not need to be deployed as separate files in your final application. The bitmaps are not stored with the imagelist. New bitmaps are created when the TRSSVGImageList is loaded.
|
Namespace: RSSVGImgList
TImageList
RSSVGImgList.TRSSVGImageList
|
Delphi
|
type
TRSSVGImageList = class(TImageList)
end;
|
|
Name
|
Description
|
|
ColorDepth
|
Color Depth of the TRSSVGImageList is 32bit
|
|
DependentImageListCount
|
Returns the number of dependent image lists.
Tip
|
The MasterImageList property allows you to create one TRSSVGImageList that contains all the SVGs. DependentImageLists are notified when SVGs change and generate different bitamp sizes of the master's SVGs, thereby saving memory and centralizing the location of SVGs in your application.
|
|
|
DependentImageLists
|
Manages the list of dependent image lists.
MasterImageLists store and provide the SVGs used by DependentImageLists. DependentImageLists are notified when SVGs change and generate different sizes of the master's SVGs, thereby saving memory and centralizing the location of SVGs in your application.
Tip
|
The MasterImageList property allows you to create one TRSSVGImageList that contains all the SVGs. DependentImageLists are notified when SVGs change and generate different bitmap sizes from the master's SVGs, thereby saving memory and centralizing the location of SVGs in your application.
|
|
|
DependentImageList[Integer]
|
Returns the image list tied to the current image list at the specified Index.
Tip
|
The MasterImageList property allows you to create one TRSSVGImageList that contains all the SVGs. DependentImageLists are notified when SVGs change and generate different bitmap sizes from the master's SVGs, thereby saving memory and centralizing the location of SVGs in your application.
|
|
|
GrayscaleBitmap
|
Represents property GrayscaleBitmap.
|
|
Height
|
The RSSVGImgList.TRSSVGImageList.Width and RSSVGImgList.TRSSVGImageList.Height properties specify the size of the bitmaps in the imagelist. Unlike with a traditional TImageList, you can change these properties at any time and the bitmaps will be regenerated from the SVG RSSVGImgList.TRSSVGImageList.Items.
|
|
Items
|
Defines the collection of SVGs in the imagelist. The SVGs supply the images that are used by the image list for other controls. Note that if RSSVGImgList.TRSSVGImageList.MasterImageList is not nil, then the SVGs are supplied by the master image list.
Note
|
The SVGs are embedded into the form or data module and do not need to be deployed as separate files in your final application. The bitmaps are not stored with the imagelist. New bitmaps are created when the TRSSVGImageList is loaded.
|
|
|
MasterImageList
|
Specifies a master SVG image list to use to supply the SVGs for the image list. If MasterImageList is not nil, then the RSSVGImgList.TRSSVGImageList.Items are empty in the current control and SVGs are supplied by the MasterImageList. If MasterImageList is nil, the Items property supplies the SVGs for the image.
Tip
|
The MasterImageList property allows you to create one TRSSVGImageList that contains all the SVGs. DependentImageLists are notified when SVGs change and generate different bitmap sizes from the master's SVGs, thereby saving memory and centralizing the location of SVGs in your application.
|
|
|
MonoBitmap
|
Represents property MonoBitmap.
|
|
Quality
|
Controls the oversampling of the painting of the SVG images. The value of quality can vary between 1 (default quality) to 8.
Note
|
This property controls the amount of oversampling performed in the buffered drawing. The offscreen buffers' dimensions are multiplied by the Quality value. Then, the offscreen buffers are downsampled when painting the control, providing anti-aliasing of the buffered drawing. If the Quality is 1, then the SVG is drawn using the default GDI+ quality, which tends to smooth the result. If you want a sharper result, change the quality
|
|
|
Width
|
The RSSVGImgList.TRSSVGImageList.Width and RSSVGImgList.TRSSVGImageList.Height properties specify the size of the bitmaps in the imagelist. Unlike with a traditional TImageList, you can change these properties at any time and the bitmaps will be regenerated from the SVG RSSVGImgList.TRSSVGImageList.Items.
|
Top
|
|
Name
|
Description
|
|
AddBitmap(TSVGCollectionItem)
|
Adds a bitmap based on the SVG to the current image list. Any dependents also have bitmaps added.
|
|
AddDependent(TRSSVGImageList)
|
Adds a dependent imagelist to this control. DependentImageLists are notified when SVGs change by the MasterImageList and generate different bitmap sizes from the master's SVGs.
|
|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
CheckCircular(TRSSVGImageList)
|
Represents method CheckCircular(TRSSVGImageList).
|
|
DoDraw(Integer,TCanvas,Integer,Integer,Cardinal,Boolean)
|
Overloaded. Represents method DoDraw(Integer,TCanvas,Integer,Integer,Cardinal,Boolean).
|
|
DoDraw(Integer,TCanvas,Integer,Integer,Integer,Integer,Cardinal,Byte,Boolean)
|
Overloaded. Represents method DoDraw(Integer,TCanvas,Integer,Integer,Integer,Integer,Cardinal,Byte,Boolean).
|
|
GenerateBitmap(TSVGCollectionItem,Integer,Integer)
|
Generates a bitmap from an SVG Item at the specified Width and Height. If Width and Height are 0, the RSSVGImgList.TRSSVGImageList.Width and RSSVGImgList.TRSSVGImageList.Height of the imagelist are used.
It is the responsibility of the caller to free the bitmap.
|
|
Notification(TComponent,TOperation)
|
Represents method Notification(TComponent,TOperation).
|
|
ReadData(TStream)
|
Represents method ReadData(TStream).
|
|
RegenerateBitmaps
|
Overloaded. Regenerates the bitmaps for the imagelist based on the SVG Items property.
|
|
RegenerateBitmaps(TRSSVGImageList)
|
Overloaded. Represents method RegenerateBitmaps(TRSSVGImageList).
|
|
RemoveDependent(TRSSVGImageList)
|
Removes a dependent imagelist from this control. DependentImageLists are notified when SVGs change by the MasterImageList and generate different bitmap sizes from the master's SVGs.
|
|
SetSize(Integer,Integer)
|
Sets the size of the bitmaps in the imagelist
|
|
SVGChanged(TSVGCollectionItem)
|
Called when a SVG changes.
|
|
SVGNotification(TSVGCollectionItem,Classes)
|
Called when a SVG is added or removed from the RSSVGImgList.TRSSVGImageList.Items property.
|
|
WriteData(TStream)
|
Represents method WriteData(TStream).
|
Top
|