PageExtensionsImageTag(Page, String, ActionImageWebTask) Method

Returns an image element with a unique and browser-cacheable url for the processed image. The first time this method is called, the image will be processed and cached on the server. The url will vary according to the processing commands so browser cache will be updated automatically when you change the parameters.

Definition

Namespace: GleamTech.ImageUltimate.AspNet.WebForms
Assembly: GleamTech.ImageUltimate (in GleamTech.ImageUltimate.dll) Version: 5.8.8
C#
public static string ImageTag(
	this Page page,
	string imagePath,
	Action<ImageWebTask> action
)

Parameters

page  Page
The Page instance.
imagePath  String
The virtual or physical path to the image to process.
action  ActionImageWebTask
The method (usually a lambda expression) for processing the image.

Return Value

String
The image element.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Page. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also