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

Class UserProfilePicTransform

User Profile Picture ImageTransform class.

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

Constructors

| Improve this Doc View Source

UserProfilePicTransform()

Initializes a new instance of the UserProfilePicTransform class.

Declaration
public UserProfilePicTransform()

Properties

| Improve this Doc View Source

IsReusable

Gets a value indicating whether is reusable.

Declaration
public bool IsReusable { get; }
Property Value
Type Description
System.Boolean
| 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
| Improve this Doc View Source

UserID

Gets or sets the UserID of the profile pic.

Declaration
public int UserID { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

GetNoAvatarImage()

Get the Bitmap of the No Avatar Image.

Declaration
public Bitmap GetNoAvatarImage()
Returns
Type Description
Bitmap

A of the No Avatar image.

| Improve this Doc View Source

ProcessImage(Image)

Process an input image applying the image transformation.

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

Input image.

Returns
Type Description
Image

Image processed.

Overrides
ImageTransform.ProcessImage(Image)
| Improve this Doc View Source

TryGetPhotoFile(out IFileInfo)

whether current user has permission to view target user's photo.

Declaration
public bool TryGetPhotoFile(out IFileInfo photoFile)
Parameters
Type Name Description
IFileInfo photoFile

The user's profile photo file, or null.

Returns
Type Description
System.Boolean

true if the file was able to be retrieved, otherwise false.

Extension Methods

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