Class BitmapSourceConfiguration
This is a configuration class for the BitmapSourceHttpContentConverter
Inheritance
System.Object
BitmapSourceConfiguration
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dapplo.HttpExtensions.Wpf.ContentConverter
Assembly: Dapplo.HttpExtensions.Wpf.dll
Syntax
public class BitmapSourceConfiguration : IHttpRequestConfiguration
Properties
| Improve this Doc View SourceFormat
Specify the format used to write the image to
Declaration
public ImageFormat Format { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Imaging.ImageFormat |
Name
Name of the configuration, this should be unique and usually is the type of the object
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Quality
Set the quality, for the Jpg format 0-100
Declaration
public int Quality { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SupportedContentTypes
Specify the supported content types
Declaration
public IList<string> SupportedContentTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
Methods
| Improve this Doc View SourceCreateEncoder()
This creates a BitmapEncoder
Declaration
public BitmapEncoder CreateEncoder()
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapEncoder | BitmapEncoder |