ImageResizer
3.4.0
|
Public Member Functions | |
IPlugin | Install (Config c) |
Installs the plugin in the specified Config instance. The plugin must handle all the work of loading settings, registering the plugin etc. More... | |
bool | Uninstall (Config c) |
Uninstalls the plugin. Should reverse all changes made during Install More... | |
bool | FileExists (string virtualPath, NameValueCollection queryString) |
Returns true if the specified file and querystring indicate a PSD composition request More... | |
IVirtualFile | GetFile (string virtualPath, NameValueCollection queryString) |
Returns a virtual file instance for the specified specified file and querystring, if they indicate a PSD composition request. Otherwise, null is returned. More... | |
IEnumerable< string > | GetSupportedQuerystringKeys () |
If the plugin reads any values from the querystring, the names of the keys should be specified here. This information is required so that the HttpModule knows when to handle an image request. More... | |
IEnumerable< string > | GetSupportedFileExtensions () |
If the plugin adds support for new file extensions (such as "psd"), they should be returned by this method. More... | |
Stream | ComposeStream (string virtualPath, NameValueCollection queryString) |
Returns a stream to the composed file, encoded in the format requested by the querystring or fake extension More... | |
System.Drawing.Bitmap | ComposeBitmap (string virtualPath, NameValueCollection queryString) |
Returns a Bitmap instance of the composed result More... | |
Size | GetPsdDimensions (string virtualPath, NameValueCollection queryString) |
Returns the size of the PSD More... | |
IList< IPsdLayer > | GetAllLayers (string virtualPath, NameValueCollection queryString) |
Returns a collection of all the layers for the specified file (memcached) More... | |
IList< IPsdLayer > | GetVisibleTextLayers (string virtualPath, NameValueCollection queryString) |
Returns a collection of all visible text layers for the file (memcached). Useful for building image maps More... | |
Protected Member Functions | |
bool | isStrictMode () |
IPsdRenderer | GetSelectedRenderer (NameValueCollection queryString) |
Returns the renderer object selected in the querystring More... | |
KeyValuePair< Size, IList < IPsdLayer > > | GetFileMetadata (string virtualPath, NameValueCollection queryString) |
Returns a collection of all the layers for the specified file and the size of the file (memcached) More... | |
bool | IsPathPSDToCompose (string virtualPath, NameValueCollection queryString=null) |
True if the file is a .psd.jpeg, .psd.png, etc file. More... | |
Definition at line 23 of file PsdComposerPlugin.cs.
|
inline |
Returns a Bitmap instance of the composed result
id |
Definition at line 123 of file PsdComposerPlugin.cs.
|
inline |
Returns a stream to the composed file, encoded in the format requested by the querystring or fake extension
id |
Definition at line 94 of file PsdComposerPlugin.cs.
|
inline |
Returns true if the specified file and querystring indicate a PSD composition request
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Definition at line 46 of file PsdComposerPlugin.cs.
|
inline |
Returns a collection of all the layers for the specified file (memcached)
virtualPath | |
queryString |
Definition at line 170 of file PsdComposerPlugin.cs.
|
inline |
Returns a virtual file instance for the specified specified file and querystring, if they indicate a PSD composition request. Otherwise, null is returned.
virtualPath | |
queryString |
Implements ImageResizer.Plugins.IVirtualImageProvider.
Definition at line 57 of file PsdComposerPlugin.cs.
|
inlineprotected |
Returns a collection of all the layers for the specified file and the size of the file (memcached)
virtualPath | |
queryString |
Definition at line 179 of file PsdComposerPlugin.cs.
|
inline |
Returns the size of the PSD
virtualPath | |
queryString |
Definition at line 160 of file PsdComposerPlugin.cs.
|
inlineprotected |
Returns the renderer object selected in the querystring
Definition at line 83 of file PsdComposerPlugin.cs.
|
inline |
If the plugin adds support for new file extensions (such as "psd"), they should be returned by this method.
Implements ImageResizer.Plugins.IFileExtensionPlugin.
Definition at line 69 of file PsdComposerPlugin.cs.
|
inline |
If the plugin reads any values from the querystring, the names of the keys should be specified here. This information is required so that the HttpModule knows when to handle an image request.
Implements ImageResizer.Plugins.IQuerystringPlugin.
Definition at line 65 of file PsdComposerPlugin.cs.
|
inline |
Returns a collection of all visible text layers for the file (memcached). Useful for building image maps
virtualPath | |
queryString |
Definition at line 222 of file PsdComposerPlugin.cs.
Installs the plugin in the specified Config instance. The plugin must handle all the work of loading settings, registering the plugin etc.
c |
Implements ImageResizer.Plugins.IPlugin.
Definition at line 29 of file PsdComposerPlugin.cs.
|
inlineprotected |
True if the file is a .psd.jpeg, .psd.png, etc file.
Definition at line 364 of file PsdComposerPlugin.cs.
|
inline |
Uninstalls the plugin. Should reverse all changes made during Install
c |
Implements ImageResizer.Plugins.IPlugin.
Definition at line 35 of file PsdComposerPlugin.cs.