ImageHelperGetImage Method |
Gets the image based on the file name. The method's return value is cached for 60 minutes.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public Image GetImage(
string filename
)
Parameters
- filename
- Type: SystemString
File name
Return Value
Type:
ImageRemarks
Should the file not be an image supported by
Bitmap, null is returned.
As the return value is cached, the returned
Image is a shared resource. Performing
any operation which modifies the image state has inherently side effects.
See Also