You've already forked linux-packaging-mono
Imported Upstream version 3.10.0
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
@ -34,9 +34,6 @@ namespace System.Drawing.Imaging
|
||||
{
|
||||
// MUST BE KEPT IN SYNC WITH gdip.h in libgdiplus!
|
||||
// The first 6 fields MUST also match MS definition
|
||||
#if TARGET_JVM
|
||||
[MonoTODO]
|
||||
#endif
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public sealed class BitmapData {
|
||||
private int width;
|
||||
|
@ -37,9 +37,6 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace System.Drawing.Imaging {
|
||||
#if TARGET_JVM
|
||||
[MonoTODO]
|
||||
#endif
|
||||
public sealed class ColorMap {
|
||||
|
||||
private Color newColor;
|
||||
|
@ -36,9 +36,6 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Drawing.Imaging
|
||||
{
|
||||
#if TARGET_JVM
|
||||
[MonoTODO]
|
||||
#endif
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public sealed class ColorMatrix
|
||||
{
|
||||
|
@ -69,7 +69,6 @@ namespace System.Drawing.Imaging
|
||||
return flags;
|
||||
}
|
||||
}
|
||||
#if !TARGET_JVM
|
||||
/* Caller should call FreeHGlobal*/
|
||||
internal IntPtr getGDIPalette()
|
||||
{
|
||||
@ -112,6 +111,5 @@ namespace System.Drawing.Imaging
|
||||
offset += 4;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -1,184 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Imaging.EncoderParameter.cs
|
||||
//
|
||||
// Author:
|
||||
// Ravindra (rkumar@novell.com)
|
||||
// Vladimir Vukicevic (vladimir@pobox.com)
|
||||
//
|
||||
// (C) 2004 Novell, Inc. http://www.novell.com
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Drawing.Imaging {
|
||||
|
||||
[MonoTODO]
|
||||
public sealed class EncoderParameter : IDisposable {
|
||||
|
||||
private Encoder encoder;
|
||||
private int valuesCount;
|
||||
private EncoderParameterValueType type;
|
||||
|
||||
internal EncoderParameter ()
|
||||
{
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, byte value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, byte[] value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, short value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, short[] value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, long value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, long[] value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, string value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, byte value, bool undefined)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, byte[] value, bool undefined)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, int numerator, int denominator)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, int[] numerator, int[] denominator)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, long rangebegin, long rangeend)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, long[] rangebegin, long[] rangeend)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, int numberOfValues, int type, int value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, int numerator1, int denominator1, int numerator2, int denominator2)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public EncoderParameter (Encoder encoder, int[] numerator1, int[] denominator1, int[] numerator2, int[] denominator2)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Encoder Encoder {
|
||||
get {
|
||||
return encoder;
|
||||
}
|
||||
|
||||
set {
|
||||
encoder = value;
|
||||
}
|
||||
}
|
||||
|
||||
public int NumberOfValues {
|
||||
get {
|
||||
return valuesCount;
|
||||
}
|
||||
}
|
||||
|
||||
public EncoderParameterValueType Type {
|
||||
get {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
public EncoderParameterValueType ValueType {
|
||||
get {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
void Dispose (bool disposing) {
|
||||
}
|
||||
|
||||
public void Dispose () {
|
||||
Dispose (true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -58,7 +58,6 @@ namespace System.Drawing.Imaging
|
||||
// Nothing
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
#if !TARGET_JVM
|
||||
internal IntPtr ToNativePtr () {
|
||||
IntPtr result;
|
||||
IntPtr ptr;
|
||||
@ -106,6 +105,5 @@ namespace System.Drawing.Imaging
|
||||
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -1,298 +0,0 @@
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
|
||||
namespace System.Drawing.Imaging
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for ImageAttributes.
|
||||
/// </summary>
|
||||
///
|
||||
[MonoTODO]
|
||||
public sealed class ImageAttributes : ICloneable, IDisposable
|
||||
{
|
||||
[MonoTODO]
|
||||
public ImageAttributes()
|
||||
{
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
public Object Clone()
|
||||
{
|
||||
ImageAttributes imgAttr = new ImageAttributes();
|
||||
imgAttr.clrMatrix = clrMatrix;
|
||||
imgAttr.clrMatrixFlag = clrMatrixFlag;
|
||||
imgAttr.clrAdjustType = clrAdjustType;
|
||||
imgAttr.gMatrix = gMatrix;
|
||||
imgAttr.thresh = thresh;
|
||||
imgAttr.gamma = gamma;
|
||||
imgAttr.clrChannelFlags = clrChannelFlags;
|
||||
imgAttr.clrProfileFilename = clrProfileFilename;
|
||||
imgAttr.clrLow = clrLow;
|
||||
imgAttr.clrHigh = clrHigh;
|
||||
imgAttr.clrMap = clrMap;
|
||||
imgAttr.wrapMode = wrapMode;
|
||||
imgAttr.col = col;
|
||||
imgAttr.bClamp = bClamp;
|
||||
imgAttr.clrPalette = clrPalette;
|
||||
imgAttr.bNoOp = bNoOp;
|
||||
return imgAttr;
|
||||
}
|
||||
|
||||
|
||||
public void SetColorMatrix(ColorMatrix newColorMatrix)
|
||||
{
|
||||
SetColorMatrix(newColorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag flags)
|
||||
{
|
||||
SetColorMatrix(newColorMatrix, flags, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetColorMatrix(ColorMatrix newColorMatrix, ColorMatrixFlag mode, ColorAdjustType type)
|
||||
{
|
||||
clrMatrix = newColorMatrix;
|
||||
clrMatrixFlag = mode;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void ClearColorMatrix()
|
||||
{
|
||||
ClearColorMatrix(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearColorMatrix(ColorAdjustType type)
|
||||
{
|
||||
ColorMatrix cm = new ColorMatrix();
|
||||
clrMatrix = cm;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix gMatrix)
|
||||
{
|
||||
SetColorMatrices(newColorMatrix, gMatrix, ColorMatrixFlag.Default, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix gMatrix, ColorMatrixFlag flags)
|
||||
{
|
||||
SetColorMatrices(newColorMatrix, gMatrix, flags, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetColorMatrices(ColorMatrix newColorMatrix, ColorMatrix gMatrix, ColorMatrixFlag mode, ColorAdjustType type)
|
||||
{
|
||||
clrMatrix = newColorMatrix;
|
||||
this.gMatrix = gMatrix;
|
||||
clrMatrixFlag = mode;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetThreshold(float thresh)
|
||||
{
|
||||
SetThreshold(thresh, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetThreshold(float thresh, ColorAdjustType type)
|
||||
{
|
||||
this.thresh = thresh;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void ClearThreshold()
|
||||
{
|
||||
ClearThreshold(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearThreshold(ColorAdjustType type)
|
||||
{
|
||||
thresh = 1.0F;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetGamma(float gamma)
|
||||
{
|
||||
SetGamma(gamma, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetGamma(float gamma, ColorAdjustType type)
|
||||
{
|
||||
this.gamma = gamma;
|
||||
clrAdjustType = type;
|
||||
return;
|
||||
}
|
||||
|
||||
public void ClearGamma()
|
||||
{
|
||||
ClearGamma(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearGamma(ColorAdjustType type)
|
||||
{
|
||||
gamma = 1;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetNoOp()
|
||||
{
|
||||
SetNoOp(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetNoOp(ColorAdjustType type)
|
||||
{
|
||||
bNoOp = true;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void ClearNoOp()
|
||||
{
|
||||
ClearNoOp(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearNoOp(ColorAdjustType type)
|
||||
{
|
||||
bNoOp = false;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetColorKey(Color clrLow, Color clrHigh)
|
||||
{
|
||||
SetColorKey(clrLow, clrHigh, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetColorKey(Color clrLow, Color clrHigh, ColorAdjustType type)
|
||||
{
|
||||
this.clrLow = clrLow;
|
||||
this.clrHigh = clrHigh;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void ClearColorKey()
|
||||
{
|
||||
ClearColorKey(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearColorKey(ColorAdjustType type)
|
||||
{
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetOutputChannel(ColorChannelFlag flags)
|
||||
{
|
||||
SetOutputChannel(flags, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetOutputChannel(ColorChannelFlag flags, ColorAdjustType type)
|
||||
{
|
||||
clrChannelFlags = flags;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void ClearOutputChannel()
|
||||
{
|
||||
ClearOutputChannel(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearOutputChannel(ColorAdjustType type)
|
||||
{
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetOutputChannelColorProfile(String clrProfileFilename)
|
||||
{
|
||||
SetOutputChannelColorProfile(clrProfileFilename, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetOutputChannelColorProfile(String clrProfileFilename, ColorAdjustType type)
|
||||
{
|
||||
this.clrProfileFilename = clrProfileFilename;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void ClearOutputChannelColorProfile()
|
||||
{
|
||||
ClearOutputChannel(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearOutputChannelColorProfile(ColorAdjustType type)
|
||||
{
|
||||
clrProfileFilename = null;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetRemapTable(ColorMap[] map)
|
||||
{
|
||||
SetRemapTable(map, ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void SetRemapTable(ColorMap[] map, ColorAdjustType type)
|
||||
{
|
||||
clrMap = map;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void ClearRemapTable()
|
||||
{
|
||||
ClearRemapTable(ColorAdjustType.Default);
|
||||
}
|
||||
|
||||
public void ClearRemapTable(ColorAdjustType type)
|
||||
{
|
||||
clrMap = null;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public void SetBrushRemapTable(ColorMap []map)
|
||||
{
|
||||
SetRemapTable(map, ColorAdjustType.Brush);
|
||||
}
|
||||
|
||||
public void ClearBrushRemapTable()
|
||||
{
|
||||
ClearRemapTable(ColorAdjustType.Brush);
|
||||
}
|
||||
|
||||
public void SetWrapMode(WrapMode mode)
|
||||
{
|
||||
SetWrapMode(mode, new Color(), false);
|
||||
}
|
||||
|
||||
public void SetWrapMode(WrapMode mode, Color clr)
|
||||
{
|
||||
SetWrapMode(mode, clr, false);
|
||||
}
|
||||
|
||||
public void SetWrapMode(WrapMode mode, Color clr, bool bClamp)
|
||||
{
|
||||
wrapMode = mode;
|
||||
col = clr;
|
||||
this.bClamp = bClamp;
|
||||
}
|
||||
|
||||
public void GetAdjustedPalette(ColorPalette palette, ColorAdjustType type)
|
||||
{
|
||||
clrPalette = palette;
|
||||
clrAdjustType = type;
|
||||
}
|
||||
|
||||
public ColorMatrix clrMatrix;
|
||||
public ColorMatrixFlag clrMatrixFlag;
|
||||
public ColorAdjustType clrAdjustType;
|
||||
public ColorMatrix gMatrix;
|
||||
public float thresh;
|
||||
public float gamma;
|
||||
public ColorChannelFlag clrChannelFlags;
|
||||
public string clrProfileFilename;
|
||||
public Color clrLow;
|
||||
public Color clrHigh;
|
||||
public ColorMap[] clrMap;
|
||||
public WrapMode wrapMode;
|
||||
public Color col;
|
||||
public bool bClamp;
|
||||
public ColorPalette clrPalette;
|
||||
public bool bNoOp;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,181 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Imaging.ImageCodecInfo.cs
|
||||
//
|
||||
// Authors:
|
||||
// Everaldo Canuto (everaldo.canuto@bol.com.br)
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
// Dennis Hayes (dennish@raytek.com)
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
// Dennis Hayes (dennish@raytek.com)
|
||||
// Jordi Mas i Hernandez (jordi@ximian.com)
|
||||
//
|
||||
// (C) 2002 Ximian, Inc. http://www.ximian.com
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections;
|
||||
using System.Collections.Specialized;
|
||||
using System.Configuration;
|
||||
using System.IO;
|
||||
using Mainsoft.Drawing.Imaging;
|
||||
|
||||
using imageio = javax.imageio;
|
||||
using spi = javax.imageio.spi;
|
||||
|
||||
namespace System.Drawing.Imaging {
|
||||
|
||||
[ComVisible (false)]
|
||||
public sealed class ImageCodecInfo
|
||||
{
|
||||
private Guid clsid;
|
||||
private string codecName;
|
||||
private string dllName;
|
||||
private string filenameExtension;
|
||||
private ImageCodecFlags flags;
|
||||
private string formatDescription;
|
||||
private Guid formatID;
|
||||
private string mimeType;
|
||||
private byte[][] signatureMasks;
|
||||
private byte[][] signaturePatterns;
|
||||
private int version;
|
||||
|
||||
public static ImageCodecInfo[] GetImageDecoders ()
|
||||
{
|
||||
Hashtable oldInfo = ImageCodec.Decoders;
|
||||
ImageCodecInfo [] newInfo = new ImageCodecInfo [oldInfo.Count];
|
||||
int i=0;
|
||||
foreach (ImageCodecInfo codec in oldInfo.Values) {
|
||||
newInfo [i++] = (ImageCodecInfo) codec.MemberwiseClone ();
|
||||
}
|
||||
return newInfo;
|
||||
}
|
||||
|
||||
internal ImageCodecInfo () {
|
||||
}
|
||||
|
||||
public static ImageCodecInfo[] GetImageEncoders ()
|
||||
{
|
||||
Hashtable oldInfo = ImageCodec.Encoders;
|
||||
ImageCodecInfo [] newInfo = new ImageCodecInfo [oldInfo.Count];
|
||||
int i=0;
|
||||
foreach (ImageCodecInfo codec in oldInfo.Values) {
|
||||
//newInfo [i++] = (ImageCodecInfo) codec.MemberwiseClone ();
|
||||
newInfo [i] = new ImageCodecInfo ();
|
||||
newInfo [i].clsid = codec.clsid;
|
||||
newInfo [i].formatID = codec.formatID;
|
||||
newInfo [i].codecName = codec.codecName;
|
||||
newInfo [i].dllName = codec.dllName;
|
||||
newInfo [i].flags = codec.flags;
|
||||
newInfo [i].filenameExtension = codec.filenameExtension;
|
||||
newInfo [i].formatDescription = codec.formatDescription;
|
||||
newInfo [i].mimeType = codec.mimeType;
|
||||
newInfo [i].signatureMasks = codec.signatureMasks;
|
||||
newInfo [i].signaturePatterns = codec.signaturePatterns;
|
||||
newInfo [i++].version = codec.version;
|
||||
}
|
||||
return newInfo;
|
||||
}
|
||||
|
||||
// properties
|
||||
|
||||
public Guid Clsid
|
||||
{
|
||||
get { return clsid; }
|
||||
set { clsid = value; }
|
||||
}
|
||||
|
||||
|
||||
public string CodecName
|
||||
{
|
||||
get { return codecName; }
|
||||
set { codecName = value; }
|
||||
}
|
||||
|
||||
|
||||
public string DllName
|
||||
{
|
||||
get { return dllName; }
|
||||
set { throw new PlatformNotSupportedException(); }
|
||||
}
|
||||
|
||||
|
||||
public string FilenameExtension
|
||||
{
|
||||
get { return filenameExtension; }
|
||||
set { filenameExtension = value; }
|
||||
}
|
||||
|
||||
|
||||
public ImageCodecFlags Flags
|
||||
{
|
||||
get { return flags; }
|
||||
set { flags = value; }
|
||||
}
|
||||
|
||||
public string FormatDescription
|
||||
{
|
||||
get { return formatDescription; }
|
||||
set { formatDescription = value; }
|
||||
}
|
||||
|
||||
public Guid FormatID
|
||||
{
|
||||
get { return formatID; }
|
||||
set { formatID = value; }
|
||||
}
|
||||
|
||||
|
||||
public string MimeType
|
||||
{
|
||||
get { return mimeType; }
|
||||
set { mimeType = value; }
|
||||
}
|
||||
|
||||
|
||||
[CLSCompliant(false)]
|
||||
public byte[][] SignatureMasks
|
||||
{
|
||||
get { return signatureMasks; }
|
||||
set { signatureMasks = value; }
|
||||
}
|
||||
|
||||
[CLSCompliant(false)]
|
||||
public byte[][] SignaturePatterns
|
||||
{
|
||||
get { return signaturePatterns; }
|
||||
set { signaturePatterns = value; }
|
||||
}
|
||||
|
||||
public int Version
|
||||
{
|
||||
get { return version; }
|
||||
set { version = value; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -1,362 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Imaging.Metafile.cs
|
||||
//
|
||||
// (C) 2002 Ximian, Inc. http://www.ximian.com
|
||||
// Author: Christian Meyer
|
||||
// eMail: Christian.Meyer@cs.tum.edu
|
||||
// Dennis Hayes (dennish@raytek.com)
|
||||
//
|
||||
|
||||
//
|
||||
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Drawing.Imaging {
|
||||
|
||||
[Serializable]
|
||||
[ComVisible (false)]
|
||||
#if SYSTEM_DRAWING_DESIGN_SUPPORT
|
||||
[Editor ("System.Drawing.Design.MetafileEditor, " + Consts.AssemblySystem_Drawing_Design, typeof (System.Drawing.Design.UITypeEditor))]
|
||||
#endif
|
||||
[MonoTODO]
|
||||
public sealed class Metafile : Image {
|
||||
|
||||
// constructors
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string filename)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#if INTPTR_SUPPORT
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr henhmetafile, bool deleteEmf)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHtc, EmfType emfType)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHtc, Rectangle frameRect)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHtc, RectangleF frameRect)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHtc)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (String fileName, IntPtr referenceHtc)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHdc, EmfType emfType, string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader, bool deleteWmf)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHtc, EmfType type, string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, EmfType type, string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type, string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
|
||||
string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
|
||||
string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
|
||||
string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
|
||||
string description)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
// methods
|
||||
[MonoTODO]
|
||||
public IntPtr GetHenhmetafile()
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
|
||||
[MonoTODO]
|
||||
public MetafileHeader GetMetafileHeader()
|
||||
{
|
||||
throw new NotFiniteNumberException();
|
||||
}
|
||||
|
||||
#if INTPTR_SUPPORT
|
||||
[MonoTODO]
|
||||
public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
[MonoTODO]
|
||||
public static MetafileHeader GetMetafileHeader(Stream stream)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public static MetafileHeader GetMetafileHeader(string fileName)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#if INTPTR_SUPPORT
|
||||
[MonoTODO]
|
||||
public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile, WmfPlaceableFileHeader wmfHeader)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endif
|
||||
[MonoTODO]
|
||||
public void PlayRecord(EmfPlusRecordType recordType, int flags, int dataSize, byte[] datawmfHeader)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
// properties
|
||||
|
||||
[MonoTODO]
|
||||
protected override void InternalSave (javax.imageio.stream.ImageOutputStream output, Guid clsid) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
protected override PixelFormat InternalPixelFormat {
|
||||
get {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
protected override java.awt.Image[] CloneNativeObjects(java.awt.Image[] src) {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#region Clone
|
||||
[MonoTODO]
|
||||
public override object Clone() {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -88,9 +88,7 @@ namespace System.Drawing.Imaging {
|
||||
}
|
||||
|
||||
[MonoTODO ("Metafiles, both WMF and EMF formats, aren't supported.")]
|
||||
#if !TARGET_JVM
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
#endif
|
||||
public sealed class MetafileHeader {
|
||||
|
||||
private MonoMetafileHeader header;
|
||||
|
Reference in New Issue
Block a user