Class UserProfilePicTransform
User Profile Picture ImageTransform class.
Inherited Members
Namespace: DotNetNuke.Services.GeneratedImage.StartTransform
Assembly: DotNetNuke.dll
Syntax
public class UserProfilePicTransform : ImageTransform
Constructors
| Improve this Doc View SourceUserProfilePicTransform()
Initializes a new instance of the UserProfilePicTransform class.
Declaration
public UserProfilePicTransform()
Properties
| Improve this Doc View SourceIsReusable
Gets a value indicating whether is reusable.
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
UniqueString
Gets provides an Unique String for the image transformation.
Declaration
public override string UniqueString { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceUserID
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 SourceGetNoAvatarImage()
Get the Bitmap of the No Avatar Image.
Declaration
public Bitmap GetNoAvatarImage()
Returns
Type | Description |
---|---|
Bitmap | A |
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
| Improve this Doc View SourceTryGetPhotoFile(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. |