|
<< Click to Display Table of Contents >> Navigation: Classes > TIWAppCache > Methods > GraphicToCacheFile |
SIGNATURE=IWAppCache.TIWAppCache.GraphicToCacheFile@TObject@TGraphic@TIWImageOutput@TIWColor@TCacheType
ETYPE=Method
Declaration:
Delphi: |
public class function GraphicToCacheFile(aOwner: TObject; AGraphic: TGraphic; imgType: TIWImageOutput; aTransparentColor: TIWColor; const aCacheType: TCacheType = ctOneTime): string; overload; |
C++: |
public: __fastcall String GraphicToCacheFile(TObject * aOwner, |
Description: Saves AGraphic to cache file. Must specify the output image format. Transparent color for PNG is optional
Parameters:
•Sender (TObject): May have one of these values
•If you are creating a Form cache file, Sender must be an instance of TIWForm class.
•If you are creating a Session cache file, Sender must be an instance of TIWApplication class, or TIWForm class
•If you are creating an Application cache file, this parameter is ignored, so NIL may be used.
•AGraphic (TGraphic): The instance of the graphic image to be saved to the cache file.
•ACacheType (TCacheType, default ctSession): Type of cache that will be used. See TCacheType definition.
•PreferPNG (Boolean, default True): If False, the generated output file will have the same image format of AGraphic, otherwise it will be converted to PNG if required.
Result: (string) Contains the URL of the cache file.