• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class SecureFileTransform

Secure File ImageTransform class.

Inheritance
System.Object
ImageTransform
SecureFileTransform
Inherited Members
ImageTransform.InterpolationMode
ImageTransform.SmoothingMode
ImageTransform.PixelOffsetMode
ImageTransform.CompositingQuality
ImageTransform.CopyImage(Stream)
Namespace: DotNetNuke.Services.GeneratedImage.StartTransform
Assembly: DotNetNuke.dll
Syntax
public class SecureFileTransform : ImageTransform

Constructors

| Improve this Doc View Source

SecureFileTransform()

Initializes a new instance of the SecureFileTransform class.

Declaration
public SecureFileTransform()

Properties

| Improve this Doc View Source

EmptyImage

Gets or sets the Image to return if no image or error.

Declaration
public Image EmptyImage { get; set; }
Property Value
Type Description
Image
| Improve this Doc View Source

SecureFile

Gets or sets set IFileInfo object of given FileId.

Declaration
public IFileInfo SecureFile { get; set; }
Property Value
Type Description
IFileInfo
| Improve this Doc View Source

UniqueString

Gets provides an Unique String for the image transformation.

Declaration
public override string UniqueString { get; }
Property Value
Type Description
System.String
Overrides
ImageTransform.UniqueString

Methods

| Improve this Doc View Source

DoesHaveReadFolderPermission(IFolderInfo)

Checks if the current user have READ permission on a given folder.

Declaration
public bool DoesHaveReadFolderPermission(IFolderInfo folder)
Parameters
Type Name Description
IFolderInfo folder

Folder info object.

Returns
Type Description
System.Boolean

True if the user has READ permission, false otherwise.

| Improve this Doc View Source

ProcessImage(Image)

Processes an input image returing a secure file image.

Declaration
public override Image ProcessImage(Image image)
Parameters
Type Name Description
Image image

Input image.

Returns
Type Description
Image

Image result after image transformation.

Overrides
ImageTransform.ProcessImage(Image)
Remarks

If the secure file is not an image, it returns an image representing the file extension.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS