-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Proposal: Update Encoder, EncoderParameterValueType to match GDI+ #30543
Labels
Milestone
Comments
cc @safern |
The state that the package is right now this would only be able to be brought to netcoreapp as we harvested the ns2.0/nca2.0/2.1 assets since we did some improvements to use new 3.0 libraries for interop. cc: @JeremyKuhne |
I think that's acceptable - users wanting to use these values on earlier versions can do so if they want to:
|
terrajobst
added
api-approved
API was approved in API review, it can be implemented
and removed
api-ready-for-review
labels
Feb 20, 2020
namespace System.Drawing.Imaging
{
public sealed partial class Encoder
{
// Existing:
// public static readonly Encoder ChrominanceTable;
// public static readonly Encoder ColorDepth;
// public static readonly Encoder Compression;
// public static readonly Encoder LuminanceTable;
// public static readonly Encoder Quality;
// public static readonly Encoder RenderMethod;
// public static readonly Encoder SaveFlag;
// public static readonly Encoder ScanMethod;
// public static readonly Encoder Transformation;
// public static readonly Encoder Version;
public static readonly Encoder ColorSpace;
public static readonly Encoder ImageItems;
public static readonly Encoder SaveAsCmyk;
}
public enum EncoderParameterValueType
{
// Existing:
// ValueTypeByte = 1,
// ValueTypeAscii = 2,
// ValueTypeShort = 3,
// ValueTypeLong = 4,
// ValueTypeRational = 5,
// ValueTypeLongRange = 6,
// ValueTypeUndefined = 7,
// ValueTypeRationalRange = 8,
ValueTypePointer = 9,
}
} |
maryamariyan
added
the
untriaged
New issue has not been triaged by the area owner
label
Feb 23, 2020
maryamariyan
removed
the
untriaged
New issue has not been triaged by the area owner
label
Mar 3, 2020
ghost
locked as resolved and limited conversation to collaborators
Dec 12, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
GDI+ has new values for:
Encoder
:EncoderColorSpace
,EncoderImageItems
andEncoderSaveAsCMYK
EncoderParameterValueType
:EncoderParameterValueTypePointer
The proposal is to update the
Encoder
type andEncoderParameterValueType
to expose these new values:See https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-constant-image-encoder-constants, https://docs.microsoft.com/en-us/windows/win32/api/gdiplusenums/ne-gdiplusenums-encoderparametervaluetype
The text was updated successfully, but these errors were encountered: