Class BitmapConfiguration
This is a configuration class for the BitmapHttpContentConverter
Inheritance
System.Object
BitmapConfiguration
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.WinForms.ContentConverter
Assembly: Dapplo.HttpExtensions.WinForms.dll
Syntax
public class BitmapConfiguration : IHttpRequestConfiguration
Constructors
| Improve this Doc View SourceBitmapConfiguration()
Default constructor
Declaration
public BitmapConfiguration()
Properties
| Improve this Doc View SourceEncoderParameters
Check the parameters for the encoder, like setting Jpg quality
Declaration
public IList<EncoderParameter> EncoderParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.Drawing.Imaging.EncoderParameter> |
Format
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 EncoderParameter, 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> |