You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@@ -1,122 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.AdjustableArrowCap.cs
|
||||
//
|
||||
// Authors:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
// Ravindra (rkumar@novell.com)
|
||||
//
|
||||
// Copyright (C) 2002/3 Ximian, Inc. http://www.ximian.com
|
||||
// Copyright (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;
|
||||
|
||||
namespace System.Drawing.Drawing2D
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for AdjustableArrowCap.
|
||||
/// </summary>
|
||||
public sealed class AdjustableArrowCap : CustomLineCap
|
||||
{
|
||||
// Constructors
|
||||
|
||||
internal AdjustableArrowCap (IntPtr ptr) : base (ptr)
|
||||
{
|
||||
}
|
||||
|
||||
public AdjustableArrowCap (float width, float height) : this (width, height, true)
|
||||
{
|
||||
}
|
||||
|
||||
public AdjustableArrowCap (float width, float height, bool isFilled)
|
||||
{
|
||||
Status status = GDIPlus.GdipCreateAdjustableArrowCap (height, width, isFilled, out nativeObject);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
|
||||
// Public Properities
|
||||
|
||||
public bool Filled {
|
||||
get {
|
||||
bool isFilled;
|
||||
Status status = GDIPlus.GdipGetAdjustableArrowCapFillState (nativeObject, out isFilled);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return isFilled;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetAdjustableArrowCapFillState (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
public float Width {
|
||||
get {
|
||||
float width;
|
||||
Status status = GDIPlus.GdipGetAdjustableArrowCapWidth (nativeObject, out width);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return width;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetAdjustableArrowCapWidth (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
public float Height {
|
||||
get {
|
||||
float height;
|
||||
Status status = GDIPlus.GdipGetAdjustableArrowCapHeight (nativeObject, out height);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return height;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetAdjustableArrowCapHeight (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
public float MiddleInset {
|
||||
get {
|
||||
float middleInset;
|
||||
Status status = GDIPlus.GdipGetAdjustableArrowCapMiddleInset (nativeObject, out middleInset);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return middleInset;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetAdjustableArrowCapMiddleInset (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,78 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.Blend.cs
|
||||
//
|
||||
// Authors:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
// Ravindra (rkumar@novell.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc. http://www.ximian.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;
|
||||
|
||||
namespace System.Drawing.Drawing2D
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for Blend.
|
||||
/// </summary>
|
||||
public sealed class Blend
|
||||
{
|
||||
private float [] positions;
|
||||
private float [] factors;
|
||||
|
||||
public Blend ()
|
||||
{
|
||||
positions = new float [1];
|
||||
factors = new float [1];
|
||||
}
|
||||
|
||||
public Blend (int count)
|
||||
{
|
||||
positions = new float [count];
|
||||
factors = new float [count];
|
||||
}
|
||||
|
||||
public float [] Factors {
|
||||
get {
|
||||
return factors;
|
||||
}
|
||||
|
||||
set {
|
||||
factors = value;
|
||||
}
|
||||
}
|
||||
|
||||
public float [] Positions {
|
||||
get {
|
||||
return positions;
|
||||
}
|
||||
|
||||
set {
|
||||
positions = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,70 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.ColorBlend.cs
|
||||
//
|
||||
// Authors:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
// Ravindra (rkumar@novell.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc. http://www.ximian.com
|
||||
// Copyright (C) 2004, 2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D
|
||||
{
|
||||
public sealed class ColorBlend
|
||||
{
|
||||
private float [] positions;
|
||||
private Color [] colors;
|
||||
|
||||
public ColorBlend ()
|
||||
{
|
||||
positions = new float [1];
|
||||
colors = new Color [1];
|
||||
}
|
||||
|
||||
public ColorBlend (int count)
|
||||
{
|
||||
positions = new float [count];
|
||||
colors = new Color [count];
|
||||
}
|
||||
|
||||
public Color [] Colors {
|
||||
get {
|
||||
return colors;
|
||||
}
|
||||
|
||||
set {
|
||||
colors = value;
|
||||
}
|
||||
}
|
||||
|
||||
public float [] Positions {
|
||||
get {
|
||||
return positions;
|
||||
}
|
||||
|
||||
set {
|
||||
positions = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,41 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.CombineMode.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum CombineMode {
|
||||
Complement = 5,
|
||||
Exclude = 4,
|
||||
Intersect = 1,
|
||||
Replace = 0,
|
||||
Union = 2,
|
||||
Xor = 3
|
||||
}
|
||||
}
|
@@ -1,37 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.CompostingMode.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum CompositingMode {
|
||||
SourceCopy = 1,
|
||||
SourceOver = 0
|
||||
}
|
||||
}
|
@@ -1,41 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.CompostingQuality.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum CompositingQuality {
|
||||
AssumeLinear = 4,
|
||||
Default = 0,
|
||||
GammaCorrected = 3,
|
||||
HighQuality = 2,
|
||||
HighSpeed = 1,
|
||||
Invalid = -1
|
||||
}
|
||||
}
|
@@ -1,38 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.CoordinateSpace.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum CoordinateSpace {
|
||||
Device = 2,
|
||||
Page = 1,
|
||||
World = 0
|
||||
}
|
||||
}
|
@@ -1,176 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.CustomLineCap.cs
|
||||
//
|
||||
// Authors:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
|
||||
// Ravindra (rkumar@novell.com)
|
||||
//
|
||||
// Copyright (C) 2002/3 Ximian, Inc. http://www.ximian.com
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public class CustomLineCap : MarshalByRefObject, ICloneable, IDisposable
|
||||
{
|
||||
private bool disposed;
|
||||
internal IntPtr nativeObject;
|
||||
|
||||
// Constructors
|
||||
|
||||
internal CustomLineCap ()
|
||||
{
|
||||
}
|
||||
|
||||
internal CustomLineCap (IntPtr ptr)
|
||||
{
|
||||
nativeObject = ptr;
|
||||
}
|
||||
|
||||
public CustomLineCap (GraphicsPath fillPath, GraphicsPath strokePath) : this (fillPath, strokePath, LineCap.Flat, 0)
|
||||
{
|
||||
}
|
||||
|
||||
public CustomLineCap (GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap) : this (fillPath, strokePath, baseCap, 0)
|
||||
{
|
||||
}
|
||||
|
||||
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap, float baseInset)
|
||||
{
|
||||
IntPtr fill = IntPtr.Zero;
|
||||
IntPtr stroke = IntPtr.Zero;
|
||||
|
||||
if (fillPath != null)
|
||||
fill = fillPath.nativePath;
|
||||
if (strokePath != null)
|
||||
stroke = strokePath.nativePath;
|
||||
|
||||
Status status = GDIPlus.GdipCreateCustomLineCap (fill, stroke, baseCap, baseInset, out nativeObject);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
|
||||
public LineCap BaseCap {
|
||||
get {
|
||||
LineCap baseCap;
|
||||
Status status = GDIPlus.GdipGetCustomLineCapBaseCap (nativeObject, out baseCap);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return baseCap;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetCustomLineCapBaseCap (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
public LineJoin StrokeJoin {
|
||||
get {
|
||||
LineJoin strokeJoin;
|
||||
Status status = GDIPlus.GdipGetCustomLineCapStrokeJoin (nativeObject, out strokeJoin);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return strokeJoin;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetCustomLineCapStrokeJoin (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
public float BaseInset {
|
||||
get {
|
||||
float baseInset;
|
||||
Status status = GDIPlus.GdipGetCustomLineCapBaseInset (nativeObject, out baseInset);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return baseInset;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetCustomLineCapBaseInset (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
public float WidthScale {
|
||||
get {
|
||||
float widthScale;
|
||||
Status status = GDIPlus.GdipGetCustomLineCapWidthScale (nativeObject, out widthScale);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return widthScale;
|
||||
}
|
||||
|
||||
set {
|
||||
Status status = GDIPlus.GdipSetCustomLineCapWidthScale (nativeObject, value);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
// Public Methods
|
||||
|
||||
public object Clone ()
|
||||
{
|
||||
IntPtr clonePtr;
|
||||
Status status = GDIPlus.GdipCloneCustomLineCap (nativeObject, out clonePtr);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return new CustomLineCap (clonePtr);
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
Dispose (true);
|
||||
System.GC.SuppressFinalize (this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose (bool disposing)
|
||||
{
|
||||
if (! disposed) {
|
||||
Status status = GDIPlus.GdipDeleteCustomLineCap (nativeObject);
|
||||
GDIPlus.CheckStatus (status);
|
||||
disposed = true;
|
||||
nativeObject = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
~CustomLineCap ()
|
||||
{
|
||||
Dispose (false);
|
||||
}
|
||||
|
||||
public void GetStrokeCaps (out LineCap startCap, out LineCap endCap)
|
||||
{
|
||||
Status status = GDIPlus.GdipGetCustomLineCapStrokeCaps (nativeObject, out startCap, out endCap);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
|
||||
public void SetStrokeCaps(LineCap startCap, LineCap endCap)
|
||||
{
|
||||
Status status = GDIPlus.GdipSetCustomLineCapStrokeCaps (nativeObject, startCap, endCap);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,38 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.DashCap.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum DashCap {
|
||||
Flat,
|
||||
Round = 2,
|
||||
Triangle = 3
|
||||
}
|
||||
}
|
@@ -1,40 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.DashStyle.cs
|
||||
//
|
||||
// Author:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum DashStyle {
|
||||
Custom = 5,
|
||||
Dash = 1,
|
||||
DashDot = 3,
|
||||
DashDotDot = 4,
|
||||
Dot = 2,
|
||||
Solid = 0
|
||||
}
|
||||
}
|
@@ -1,37 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.FillMode.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum FillMode {
|
||||
Alternate = 0,
|
||||
Winding = 1
|
||||
}
|
||||
}
|
@@ -1,37 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.FlushIntention.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum FlushIntention {
|
||||
Flush = 0,
|
||||
Sync = 1
|
||||
}
|
||||
}
|
@@ -630,7 +630,7 @@ namespace System.Drawing.Drawing2D
|
||||
|
||||
IntPtr sformat = (format == null) ? IntPtr.Zero : format.NativeObject;
|
||||
// note: the NullReferenceException on s.Length is the expected (MS) exception
|
||||
Status status = GDIPlus.GdipAddPathStringI (nativePath, s, s.Length, family.NativeObject, style, emSize, ref layoutRect, sformat);
|
||||
Status status = GDIPlus.GdipAddPathStringI (nativePath, s, s.Length, family.NativeFamily, style, emSize, ref layoutRect, sformat);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
|
||||
@@ -642,7 +642,7 @@ namespace System.Drawing.Drawing2D
|
||||
|
||||
IntPtr sformat = (format == null) ? IntPtr.Zero : format.NativeObject;
|
||||
// note: the NullReferenceException on s.Length is the expected (MS) exception
|
||||
Status status = GDIPlus.GdipAddPathString (nativePath, s, s.Length, family.NativeObject, style, emSize, ref layoutRect, sformat);
|
||||
Status status = GDIPlus.GdipAddPathString (nativePath, s, s.Length, family.NativeFamily, style, emSize, ref layoutRect, sformat);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
|
||||
@@ -699,7 +699,7 @@ namespace System.Drawing.Drawing2D
|
||||
{
|
||||
RectangleF retval;
|
||||
IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;
|
||||
IntPtr p = (pen == null) ? IntPtr.Zero : pen.nativeObject;
|
||||
IntPtr p = (pen == null) ? IntPtr.Zero : pen.NativePen;
|
||||
|
||||
Status s = GDIPlus.GdipGetPathWorldBounds (nativePath, out retval, m, p);
|
||||
|
||||
@@ -746,7 +746,7 @@ namespace System.Drawing.Drawing2D
|
||||
bool result;
|
||||
IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;
|
||||
|
||||
Status s = GDIPlus.GdipIsOutlineVisiblePathPointI (nativePath, x, y, pen.nativeObject, g, out result);
|
||||
Status s = GDIPlus.GdipIsOutlineVisiblePathPointI (nativePath, x, y, pen.NativePen, g, out result);
|
||||
GDIPlus.CheckStatus (s);
|
||||
|
||||
return result;
|
||||
@@ -760,7 +760,7 @@ namespace System.Drawing.Drawing2D
|
||||
bool result;
|
||||
IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;
|
||||
|
||||
Status s = GDIPlus.GdipIsOutlineVisiblePathPoint (nativePath, x, y, pen.nativeObject, g, out result);
|
||||
Status s = GDIPlus.GdipIsOutlineVisiblePathPoint (nativePath, x, y, pen.NativePen, g, out result);
|
||||
GDIPlus.CheckStatus (s);
|
||||
|
||||
return result;
|
||||
@@ -889,7 +889,7 @@ namespace System.Drawing.Drawing2D
|
||||
return;
|
||||
IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;
|
||||
|
||||
Status s = GDIPlus.GdipWidenPath (nativePath, pen.nativeObject, m, flatness);
|
||||
Status s = GDIPlus.GdipWidenPath (nativePath, pen.NativePen, m, flatness);
|
||||
GDIPlus.CheckStatus (s);
|
||||
}
|
||||
}
|
||||
|
@@ -1,208 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.GraphicsPathIterator.cs
|
||||
//
|
||||
// Author:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
// Duncan Mak (duncan@ximian.com)
|
||||
// Ravindra (rkumar@novell.com)
|
||||
//
|
||||
// Copyright (C) 2002/3 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.Drawing;
|
||||
|
||||
namespace System.Drawing.Drawing2D
|
||||
{
|
||||
public sealed class GraphicsPathIterator : MarshalByRefObject, IDisposable
|
||||
{
|
||||
private IntPtr nativeObject = IntPtr.Zero;
|
||||
|
||||
// Constructors
|
||||
internal GraphicsPathIterator (IntPtr native)
|
||||
{
|
||||
this.nativeObject = native;
|
||||
}
|
||||
|
||||
public GraphicsPathIterator (GraphicsPath path)
|
||||
{
|
||||
if (path != null) {
|
||||
Status status = GDIPlus.GdipCreatePathIter (out nativeObject, path.NativeObject);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
|
||||
internal IntPtr NativeObject {
|
||||
get {
|
||||
return nativeObject;
|
||||
}
|
||||
set {
|
||||
nativeObject = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Public Properites
|
||||
|
||||
public int Count {
|
||||
get {
|
||||
if (nativeObject == IntPtr.Zero)
|
||||
return 0;
|
||||
|
||||
int count;
|
||||
Status status = GDIPlus.GdipPathIterGetCount (nativeObject, out count);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
||||
public int SubpathCount {
|
||||
get {
|
||||
int count;
|
||||
Status status = GDIPlus.GdipPathIterGetSubpathCount (nativeObject, out count);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
||||
internal void Dispose (bool disposing)
|
||||
{
|
||||
Status status;
|
||||
if (nativeObject != IntPtr.Zero) {
|
||||
status = GDIPlus.GdipDeletePathIter (nativeObject);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
nativeObject = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
// Public Methods.
|
||||
|
||||
public int CopyData (ref PointF [] points, ref byte [] types, int startIndex, int endIndex)
|
||||
{
|
||||
Status status;
|
||||
int resultCount;
|
||||
|
||||
// no null checks, MS throws a NullReferenceException here
|
||||
if (points.Length != types.Length)
|
||||
throw new ArgumentException ("Invalid arguments passed. Both arrays should have the same length.");
|
||||
|
||||
status = GDIPlus.GdipPathIterCopyData (nativeObject, out resultCount, points, types, startIndex, endIndex);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
Dispose (true);
|
||||
System.GC.SuppressFinalize (this);
|
||||
}
|
||||
|
||||
~GraphicsPathIterator ()
|
||||
{
|
||||
Dispose (false);
|
||||
}
|
||||
|
||||
public int Enumerate (ref PointF [] points, ref byte [] types)
|
||||
{
|
||||
Status status;
|
||||
int resultCount;
|
||||
// no null checks, MS throws a NullReferenceException here
|
||||
int count = points.Length;
|
||||
if (count != types.Length)
|
||||
throw new ArgumentException ("Invalid arguments passed. Both arrays should have the same length.");
|
||||
|
||||
status = GDIPlus.GdipPathIterEnumerate (nativeObject, out resultCount, points, types, count);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
public bool HasCurve ()
|
||||
{
|
||||
bool curve;
|
||||
Status status = GDIPlus.GdipPathIterHasCurve (nativeObject, out curve);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return curve;
|
||||
}
|
||||
|
||||
public int NextMarker (GraphicsPath path)
|
||||
{
|
||||
int resultCount;
|
||||
IntPtr ptr = (path == null) ? IntPtr.Zero : path.NativeObject;
|
||||
Status status = GDIPlus.GdipPathIterNextMarkerPath (nativeObject, out resultCount, ptr);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
public int NextMarker (out int startIndex, out int endIndex)
|
||||
{
|
||||
Status status;
|
||||
int resultCount;
|
||||
status = GDIPlus.GdipPathIterNextMarker (nativeObject, out resultCount, out startIndex, out endIndex);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
public int NextPathType (out byte pathType, out int startIndex, out int endIndex)
|
||||
{
|
||||
Status status;
|
||||
int resultCount;
|
||||
status = GDIPlus.GdipPathIterNextPathType (nativeObject, out resultCount, out pathType, out startIndex, out endIndex);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
public int NextSubpath (GraphicsPath path, out bool isClosed)
|
||||
{
|
||||
int resultCount;
|
||||
IntPtr ptr = (path == null) ? IntPtr.Zero : path.NativeObject;
|
||||
Status status = GDIPlus.GdipPathIterNextSubpathPath (nativeObject, out resultCount, ptr, out isClosed);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
public int NextSubpath (out int startIndex, out int endIndex, out bool isClosed)
|
||||
{
|
||||
Status status;
|
||||
int resultCount;
|
||||
status = GDIPlus.GdipPathIterNextSubpath (nativeObject, out resultCount, out startIndex, out endIndex, out isClosed);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
return resultCount;
|
||||
}
|
||||
|
||||
public void Rewind ()
|
||||
{
|
||||
Status status = GDIPlus.GdipPathIterRewind (nativeObject);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,51 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.GraphicsState.cs
|
||||
//
|
||||
// Author:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
//
|
||||
|
||||
//
|
||||
// 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;
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
/// <summary>
|
||||
/// Summary description for GraphicsState.
|
||||
/// </summary>
|
||||
public sealed class GraphicsState : MarshalByRefObject
|
||||
{
|
||||
// All members inherited
|
||||
internal uint nativeState;
|
||||
|
||||
// Constructor
|
||||
internal GraphicsState()
|
||||
{
|
||||
// Nothing to be done here
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@@ -1,97 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.HatchBrush.cs
|
||||
//
|
||||
// Authors:
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
// Ravindra (rkumar@novell.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// (C) 2004 Novell, Inc.
|
||||
//
|
||||
|
||||
//
|
||||
// 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;
|
||||
|
||||
namespace System.Drawing.Drawing2D
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for HatchBrush.
|
||||
/// </summary>
|
||||
public sealed class HatchBrush : Brush
|
||||
{
|
||||
|
||||
internal HatchBrush (IntPtr ptr) : base (ptr)
|
||||
{
|
||||
}
|
||||
|
||||
public HatchBrush (HatchStyle hatchstyle, Color foreColor)
|
||||
: this (hatchstyle, foreColor, Color.Black)
|
||||
{
|
||||
}
|
||||
|
||||
public HatchBrush(HatchStyle hatchstyle, Color foreColor, Color backColor)
|
||||
{
|
||||
Status status = GDIPlus.GdipCreateHatchBrush (hatchstyle, foreColor.ToArgb (), backColor.ToArgb (), out nativeObject);
|
||||
GDIPlus.CheckStatus (status);
|
||||
}
|
||||
|
||||
public Color BackgroundColor {
|
||||
get {
|
||||
int argb;
|
||||
Status status = GDIPlus.GdipGetHatchBackgroundColor (nativeObject, out argb);
|
||||
GDIPlus.CheckStatus (status);
|
||||
return Color.FromArgb (argb);
|
||||
}
|
||||
}
|
||||
|
||||
public Color ForegroundColor {
|
||||
get {
|
||||
int argb;
|
||||
Status status = GDIPlus.GdipGetHatchForegroundColor (nativeObject, out argb);
|
||||
GDIPlus.CheckStatus (status);
|
||||
return Color.FromArgb (argb);
|
||||
}
|
||||
}
|
||||
|
||||
public HatchStyle HatchStyle {
|
||||
get {
|
||||
HatchStyle hatchStyle;
|
||||
Status status = GDIPlus.GdipGetHatchStyle (nativeObject, out hatchStyle);
|
||||
GDIPlus.CheckStatus (status);
|
||||
return hatchStyle;
|
||||
}
|
||||
}
|
||||
|
||||
public override object Clone ()
|
||||
{
|
||||
IntPtr clonePtr;
|
||||
Status status = GDIPlus.GdipCloneBrush (nativeObject, out clonePtr);
|
||||
GDIPlus.CheckStatus (status);
|
||||
|
||||
HatchBrush clone = new HatchBrush (clonePtr);
|
||||
return clone;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@@ -1,92 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.HatchStyle.cs
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
// Ravindra (rkumar@novell.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc.
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum HatchStyle {
|
||||
BackwardDiagonal = 3,
|
||||
Cross = LargeGrid,
|
||||
DarkDownwardDiagonal = 20,
|
||||
DarkHorizontal = 29,
|
||||
DarkUpwardDiagonal = 21,
|
||||
DarkVertical = 28,
|
||||
DashedDownwardDiagonal = 30,
|
||||
DashedHorizontal = 32,
|
||||
DashedUpwardDiagonal = 31,
|
||||
DashedVertical = 33,
|
||||
DiagonalBrick = 38,
|
||||
DiagonalCross = 5,
|
||||
Divot = 42,
|
||||
DottedDiamond = 44,
|
||||
DottedGrid = 43,
|
||||
ForwardDiagonal = 2,
|
||||
Horizontal = 0,
|
||||
HorizontalBrick = 39,
|
||||
LargeCheckerBoard = 50,
|
||||
LargeConfetti = 35,
|
||||
LargeGrid = 4,
|
||||
LightDownwardDiagonal = 18,
|
||||
LightHorizontal = 25,
|
||||
LightUpwardDiagonal = 19,
|
||||
LightVertical = 24,
|
||||
Max = 4,
|
||||
Min = 0,
|
||||
NarrowHorizontal = 27,
|
||||
NarrowVertical = 26,
|
||||
OutlinedDiamond = 51,
|
||||
Percent05 = 6,
|
||||
Percent10 = 7,
|
||||
Percent20 = 8,
|
||||
Percent25 = 9,
|
||||
Percent30 = 10,
|
||||
Percent40 = 11,
|
||||
Percent50 = 12,
|
||||
Percent60 = 13,
|
||||
Percent70 = 14,
|
||||
Percent75 = 15,
|
||||
Percent80 = 16,
|
||||
Percent90 = 17,
|
||||
Plaid = 41,
|
||||
Shingle = 45,
|
||||
SmallCheckerBoard = 49,
|
||||
SmallConfetti = 34,
|
||||
SmallGrid = 48,
|
||||
SolidDiamond = 52,
|
||||
Sphere = 47,
|
||||
Trellis = 46,
|
||||
Vertical = 1,
|
||||
Wave = 37,
|
||||
Weave = 40,
|
||||
WideDownwardDiagonal = 22,
|
||||
WideUpwardDiagonal = 23,
|
||||
ZigZag = 36
|
||||
}
|
||||
}
|
@@ -1,44 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.InterpolationMode.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum InterpolationMode {
|
||||
Bicubic = 4,
|
||||
Bilinear = 3,
|
||||
Default = 0,
|
||||
High = 2,
|
||||
HighQualityBicubic = 7,
|
||||
HighQualityBilinear = 6,
|
||||
Invalid = -1,
|
||||
Low = 1,
|
||||
NearestNeighbor = 5
|
||||
}
|
||||
}
|
@@ -1,46 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.LineCap.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum LineCap {
|
||||
AnchorMask = 240,
|
||||
ArrowAnchor = 20,
|
||||
Custom = 255,
|
||||
DiamondAnchor = 19,
|
||||
Flat = 0,
|
||||
NoAnchor = 16,
|
||||
Round = 2,
|
||||
RoundAnchor = 18,
|
||||
Square = 1,
|
||||
SquareAnchor = 17,
|
||||
Triangle = 3
|
||||
}
|
||||
}
|
@@ -1,39 +0,0 @@
|
||||
//
|
||||
// System.Drawing.Drawing2D.LineJoin.cs
|
||||
//
|
||||
// Author:
|
||||
// Stefan Maierhofer <sm@cg.tuwien.ac.at>
|
||||
// Dennis Hayes (dennish@Raytek.com)
|
||||
//
|
||||
// (C) 2002/3 Ximian, Inc
|
||||
// Copyright (C) 2004,2006 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.
|
||||
//
|
||||
|
||||
namespace System.Drawing.Drawing2D {
|
||||
|
||||
public enum LineJoin {
|
||||
Bevel = 1,
|
||||
Miter = 0,
|
||||
MiterClipped = 3,
|
||||
Round = 2
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user