├── .gitignore
├── LICENSE
├── README.md
├── ZKWeb.System.Drawing.sln
├── appveyor.yml
├── global.json
└── src
├── ZKWeb.System.Drawing.Console
├── .gitignore
├── Program.cs
└── ZKWeb.System.Drawing.Console.csproj
├── ZKWeb.System.Drawing.Tests
├── .gitignore
├── HostIgnoreList.cs
├── Properties
│ └── AssemblyInfo.cs
├── Remark.txt
├── System.Drawing.Design
│ ├── CategoryNameCollectionCas.cs
│ ├── PaintValueEventArgsCas.cs
│ ├── PropertyValueUIItemCas.cs
│ ├── TestToolboxItem.cs
│ ├── ToolboxComponentsCreatedEventArgsCas.cs
│ ├── ToolboxComponentsCreatingEventArgsCas.cs
│ ├── ToolboxItemCas.cs
│ ├── ToolboxItemCollectionCas.cs
│ ├── UITypeEditorCas.cs
│ └── UITypeEditorTest.cs
├── System.Drawing.Drawing2D
│ ├── GraphicsPathIteratorTest.cs
│ ├── GraphicsPathTest.cs
│ ├── LinearGradientBrushTest.cs
│ ├── PathDataTest.cs
│ ├── PathGradientBrushTest.cs
│ ├── TestBlend.cs
│ ├── TestColorBlend.cs
│ ├── TestHatchBrush.cs
│ └── TestMatrix.cs
├── System.Drawing.Imaging
│ ├── .gitattributes
│ ├── EmfPlusRecordTypeTest.cs
│ ├── FrameDimensionTest.cs
│ ├── GifCodecTest.cs
│ ├── IconCodecTest.cs
│ ├── MetaHeaderTest.cs
│ ├── MetafileTest.cs
│ ├── PngCodecTest.cs
│ ├── TestBmpCodec.cs
│ ├── TestColorMatrix.cs
│ ├── TestImageAttributes.cs
│ ├── TestImageCodecInfo.cs
│ ├── TestImageFormat.cs
│ ├── TestJpegCodec.cs
│ ├── TiffCodecTest.cs
│ ├── WmfPlaceableFileHeaderTest.cs
│ ├── tests-ms.sh
│ └── tests.sh
├── System.Drawing.Printing
│ ├── MarginsTest.cs
│ ├── PageSettingsTest.cs
│ ├── PageSourceTest.cs
│ ├── PaperSizeTest.cs
│ ├── PrinterUnitConvertTest.cs
│ ├── PrintingPermissionAttributeTest.cs
│ ├── PrintingPermissionTest.cs
│ └── PrintingServicesUnixTest.cs
├── System.Drawing.Text
│ ├── InstalledFontCollectionTest.cs
│ ├── PrivateFontCollectionCas.cs
│ └── PrivateFontCollectionTest.cs
├── System.Drawing
│ ├── .gitattributes
│ ├── BitmapCas.cs
│ ├── ColorConverter.cs
│ ├── ColorTranslator.cs
│ ├── FontFamilyTest.cs
│ ├── GDIPlusTest.cs
│ ├── GraphicsCas.cs
│ ├── PenTest.cs
│ ├── README
│ ├── RegionCas.cs
│ ├── RegionDataTest.cs
│ ├── RegionNonRectTest.cs
│ ├── SolidBrushTest.cs
│ ├── SystemFontsTest.cs
│ ├── SystemIconsTest.cs
│ ├── TestBitmap.cs
│ ├── TestBrushes.cs
│ ├── TestColor.cs
│ ├── TestFont.cs
│ ├── TestFontConverter.cs
│ ├── TestGraphics.cs
│ ├── TestIcon.cs
│ ├── TestIconConverter.cs
│ ├── TestImage.cs
│ ├── TestImageConverter.cs
│ ├── TestImageFormatConverter.cs
│ ├── TestPens.cs
│ ├── TestPoint.cs
│ ├── TestPointConverter.cs
│ ├── TestPointF.cs
│ ├── TestRectangle.cs
│ ├── TestRectangleConverter.cs
│ ├── TestRectangleF.cs
│ ├── TestRegion.cs
│ ├── TestSize.cs
│ ├── TestSizeConverter.cs
│ ├── TestSizeF.cs
│ ├── TestSizeFConverter.cs
│ ├── TestStringFormat.cs
│ ├── TestSystemBrushes.cs
│ ├── TestSystemPens.cs
│ ├── TextureBrushTest.cs
│ ├── bitmaps
│ │ ├── 16x16x16.ico
│ │ ├── 1bit.png
│ │ ├── 323511.ico
│ │ ├── 32bpp.ico
│ │ ├── 32x32x16.ico
│ │ ├── 415581.ico
│ │ ├── 48x48x1.ico
│ │ ├── 4bit.png
│ │ ├── 64x64x256.ico
│ │ ├── 80509.ico
│ │ ├── 81674-2bpp.png
│ │ ├── 81773-interlaced.gif
│ │ ├── 96x96x256.ico
│ │ ├── VisualPng.ico
│ │ ├── VisualPng1.ico
│ │ ├── almogaver-os2.bmp
│ │ ├── almogaver1bit.bmp
│ │ ├── almogaver24bits.bmp
│ │ ├── almogaver24bits1.bmp
│ │ ├── almogaver32bits.bmp
│ │ ├── almogaver32bits.tif
│ │ ├── almogaver8bits.bmp
│ │ ├── maketransparent.bmp
│ │ ├── milkmateya01.emf
│ │ ├── nature-greyscale.jpg
│ │ ├── nature24bits.gif
│ │ ├── nature24bits.jpg
│ │ ├── nature24bits87.gif
│ │ ├── non-inverted.bmp
│ │ ├── only256.ico
│ │ ├── smiley.ico
│ │ └── telescope_01.wmf
│ ├── tests-ms.sh
│ └── tests.sh
└── ZKWeb.System.Drawing.Tests.csproj
└── ZKWeb.System.Drawing
├── Properties
└── AssemblyInfo.cs
├── System.Drawing.Design
├── .gitattributes
├── CategoryNameCollection.cs
├── IPropertyValueUIService.cs
├── IToolboxItemProvider.cs
├── IToolboxService.cs
├── IToolboxUser.cs
├── PaintValueEventArgs.cs
├── PropertyValueItem.cs
├── PropertyValueUIHandler.cs
├── PropertyValueUIItemInvokeHandler.cs
├── ToolboxComponentsCreatedEventArgs.cs
├── ToolboxComponentsCreatedEventHandler.cs
├── ToolboxComponentsCreatingEventArgs.cs
├── ToolboxComponentsCreatingEventHandler.cs
├── ToolboxItem.cs
├── ToolboxItemCollection.cs
├── ToolboxItemCreatorCallback.cs
├── UITypeEditor.cs
└── UITypeEditorEditStyle.cs
├── System.Drawing.Drawing2D
├── AdjustableArrowCap.cs
├── Blend.cs
├── ColorBlend.cs
├── CombineMode.cs
├── CompostingMode.cs
├── CompostingQuality.cs
├── CoordinateSpace.cs
├── CustomLineCap.cs
├── DashCap.cs
├── DashStyle.cs
├── FillMode.cs
├── FlushIntention.cs
├── GraphicsContainer.cs
├── GraphicsPath.cs
├── GraphicsPathIterator.cs
├── GraphicsState.cs
├── HatchBrush.cs
├── HatchStyle.cs
├── InterpolationMode.cs
├── LineCap.cs
├── LineJoin.cs
├── LinearGradientBrush.cs
├── LinearGradientMode.cs
├── Matrix.cs
├── MatrixOrder.cs
├── PathData.cs
├── PathGradientBrush.cs
├── PathPointType.cs
├── PenAlignment.cs
├── PenType.cs
├── PixelOffsetMode.cs
├── QualityMode.cs
├── RegionData.cs
├── SmoothingMode.cs
├── WarpMode.cs
└── WrapMode.cs
├── System.Drawing.Imaging
├── BitmapData.cs
├── ColorAdjustType.cs
├── ColorChannelFlag.cs
├── ColorMap.cs
├── ColorMapType.cs
├── ColorMatrix.cs
├── ColorMatrixFlag.cs
├── ColorMode.cs
├── ColorPalette.cs
├── EmfPlusRecordType.cs
├── EmfType.cs
├── Encoder.cs
├── EncoderParameter.cs
├── EncoderParameterValueType.cs
├── EncoderParameters.cs
├── EncoderValue.cs
├── FrameDimension.cs
├── ImageAttributes.cs
├── ImageCodecFlags.cs
├── ImageCodecInfo.cs
├── ImageFlags.cs
├── ImageFormat.cs
├── ImageLockMode.cs
├── MetaHeader.cs
├── Metafile.cs
├── MetafileFrameUnit.cs
├── MetafileHeader.cs
├── MetafileType.cs
├── PaletteFlags.cs
├── PixelFormat.cs
├── PlayRecordCallback.cs
├── PropertyItem.cs
└── WmfPlaceableFileHeader.cs
├── System.Drawing.Printing
├── .gitattributes
├── Duplex.cs
├── InvalidPrinterException.cs
├── Margins.cs
├── MarginsConverter.cs
├── PageSettings.cs
├── PaperKind.cs
├── PaperSize.cs
├── PaperSource.cs
├── PaperSourceKind.cs
├── PreviewPageInfo.cs
├── PreviewPrintController.cs
├── PrintAction.cs
├── PrintController.cs
├── PrintDocument.cs
├── PrintEventArgs.cs
├── PrintEventHandler.cs
├── PrintPageEventArgs.cs
├── PrintPageEventHandler.cs
├── PrintRange.cs
├── PrinterResolution.cs
├── PrinterResolutionKind.cs
├── PrinterSettings.cs
├── PrinterUnit.cs
├── PrinterUnitConvert.cs
├── PrintingPermission.cs
├── PrintingPermissionAttribute.cs
├── PrintingPermissionLevel.cs
├── PrintingServices.cs
├── PrintingServicesUnix.cs
├── PrintingServicesWin32.cs
├── QueryPageSettingsEventArgs.cs
├── QueryPageSettingsEventHandler.cs
└── StandardPrintController.cs
├── System.Drawing.Text
├── FontCollection.cs
├── GenericFontFamilies.cs
├── HotkeyPrefix.cs
├── InstalledFontCollection.cs
├── PrivateFontCollection.cs
└── TextRenderingHint.cs
├── System.Drawing
├── Bitmap.cs
├── BitmapSuffixInSameAssemblyAttribute.cs
├── BitmapSuffixInSatelliteAssemblyAttribute.cs
├── Brush.cs
├── Brushes.cs
├── BufferedGraphics.cs
├── BufferedGraphicsContext.cs
├── BufferedGraphicsManager.cs
├── CharacterRange.cs
├── Color.cs
├── ColorConverter.cs
├── ColorTranslator.cs
├── ComIStreamMarshaler.cs
├── ComIStreamWrapper.cs
├── ContentAlignment.cs
├── CopyPixelOperation.cs
├── Font.cs
├── FontConverter.cs
├── FontFamily.cs
├── FontStyle.cs
├── Graphics.cs
├── GraphicsUnit.cs
├── IDeviceContext.cs
├── Icon.cs
├── IconConverter.cs
├── Image.cs
├── ImageAnimator.cs
├── ImageConverter.cs
├── ImageFormatConverter.cs
├── KnownColor.cs
├── KnownColors.cs
├── Pen.cs
├── Pens.cs
├── Point.cs
├── PointConverter.cs
├── PointF.cs
├── Rectangle.cs
├── RectangleConverter.cs
├── RectangleF.cs
├── Region.cs
├── RotateFlipType.cs
├── SRDescriptionAttribute.cs
├── Size.cs
├── SizeConverter.cs
├── SizeF.cs
├── SizeFConverter.cs
├── SolidBrush.cs
├── StringAligment.cs
├── StringDigitSubstitute.cs
├── StringFormat.cs
├── StringFormatFlags.cs
├── StringTrimming.cs
├── StringUnit.cs
├── SystemBrushes.cs
├── SystemColors.cs
├── SystemFonts.cs
├── SystemIcons.cs
├── SystemPens.cs
├── TextureBrush.cs
├── ToolboxBitmapAttribute.cs
├── gdipEnums.cs
├── gdipFunctions.cs
├── gdipStructs.cs
└── macFunctions.cs
├── ZKWeb.System.Drawing.csproj
└── ZKWeb.System.Drawing.nuspec
/README.md:
--------------------------------------------------------------------------------
1 | # Notice
2 |
3 | Please use [System.Drawing.Common](https://www.nuget.org/packages/System.Drawing.Common) instead, this is an official fork of mono's system drawing implementation, this project will no longer be maintained.
4 |
5 | ----------------------------------------------
6 | ----------------------------------------------
7 | ----------------------------------------------
8 | ----------------------------------------------
9 | ----------------------------------------------
10 |
11 | # System.Drawing for .NET Core, that really work
12 |
13 | This is a .Net Core compatible System.Drawing implementation modified from mono project.
14 | Works on windows and linux.
15 |
16 | Since 3.0, namespace is replaced to `System.DrawingCore`, please modify your code after upgrade.
17 |
18 | Since 4.0, netstandard 2.0 is required, and code is updated to mono 5.2.0.215.
19 |
20 | [](http://www.nuget.org/packages/ZKWeb.System.Drawing)
21 |
22 | These system are tested:
23 |
24 | - Windows 8.1 64bit
25 | - Ubuntu Server 16.04 LTS 64bit
26 | - Fedora 24 64bit
27 | - CentOS 7.2 64bit
28 |
29 | These features should work:
30 |
31 | - Open jpg, bmp, ico, png
32 | - Save jpg, bmp, ico, png
33 | - Resize image
34 | - Draw graphics with brush and pen
35 | - Open font and draw string
36 |
37 | Known issues:
38 |
39 | - #1 Save icon file large than 255x255 will cause arithmetic overflow error
40 |
41 | # How can I get it work?
42 |
43 | On windows, just install package `ZKWeb.System.Drawing` from nuget.
44 |
45 | On Linux, except install package `ZKWeb.System.Drawing` from nuget, you need install `libgdiplus`.
46 |
47 | - Ubuntu 16.04 and above:
48 | - apt-get install libgdiplus
49 | - cd /usr/lib
50 | - ln -s libgdiplus.so gdiplus.dll
51 | - Fedora 23 and above:
52 | - dnf install libgdiplus
53 | - cd /usr/lib64/
54 | - ln -s libgdiplus.so.0 gdiplus.dll
55 | - CentOS 7 and above:
56 | - yum install autoconf automake libtool
57 | - yum install freetype-devel fontconfig libXft-devel
58 | - yum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel
59 | - yum install glib2-devel cairo-devel
60 | - git clone https://github.com/mono/libgdiplus
61 | - cd libgdiplus
62 | - ./autogen.sh
63 | - make
64 | - make install
65 | - cd /usr/lib64/
66 | - ln -s /usr/local/lib/libgdiplus.so gdiplus.dll
67 |
68 | **Then you should replace all `System.Drawing` To `System.DrawingCore` in your code**
69 |
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: 1.0.{build}
2 | image: Visual Studio 2017
3 | before_build:
4 | - cmd: dotnet restore
5 | build:
6 | project: ZKWeb.System.Drawing.sln
7 | verbosity: minimal
8 | after_build:
9 | - cmd: >-
10 | rem cd src\ZKWeb.System.Drawing.Console
11 |
12 | rem dotnet run -f net461
13 |
14 | rem dotnet run -f netcoreapp1.0
15 | test: off
--------------------------------------------------------------------------------
/global.json:
--------------------------------------------------------------------------------
1 | {"projects":["src","test"]}
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Console/.gitignore:
--------------------------------------------------------------------------------
1 | TestResult.xml
2 | test-drawimage.emf
3 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Console/Program.cs:
--------------------------------------------------------------------------------
1 | using MonoTests.System.DrawingCore;
2 | using NUnitLite;
3 | using System;
4 | using System.Reflection;
5 |
6 | namespace ZKWeb.System.DrawingCore.Console {
7 | public class Program {
8 | static void Main(string[] args) {
9 | new AutoRun(typeof(PenTest).GetTypeInfo().Assembly).Execute(args);
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Console/ZKWeb.System.Drawing.Console.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net461;netcoreapp2.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/.gitignore:
--------------------------------------------------------------------------------
1 | TestResult.xml
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyConfiguration("")]
9 | [assembly: AssemblyCompany("")]
10 | [assembly: AssemblyProduct("ZKWeb.System.DrawingCore.Tests")]
11 | [assembly: AssemblyTrademark("")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
17 |
18 | // The following GUID is for the ID of the typelib if this project is exposed to COM
19 | [assembly: Guid("bc872146-c856-47ca-b1e9-8d1256d57fa9")]
20 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/Remark.txt:
--------------------------------------------------------------------------------
1 | Replace ExpectedException:
2 | \[ExpectedException\s*\(typeof\s*\((\w+)\)\s*\)\]\n\t\t(.*?)\n\t\t\{([\s\S]+?)\n\t\t\}
3 | $2\n\t\t{\n\t\t\tAssert.Throws<$1>(() =>\n\t\t\t{$3});\n\t\t}
4 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing.Imaging/.gitattributes:
--------------------------------------------------------------------------------
1 | /TestColorMatrix.cs -crlf
2 | /tests-ms.sh -crlf
3 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing.Imaging/IconCodecTest.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing.Imaging/IconCodecTest.cs
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing.Imaging/TiffCodecTest.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing.Imaging/TiffCodecTest.cs
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing.Imaging/tests-ms.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ $# -eq 0 ]; then
4 | echo "You should give a list of test names such as: "
5 | echo "$0 System.DrawingCore.TestStringFormat"
6 | echo "or"
7 | echo "$0 all"
8 | exit 1
9 | fi
10 |
11 | export MSNet=Yes
12 | cp ../../System.Drawing_test.dll .
13 | topdir=../../../..
14 | NUNITCONSOLE=$topdir/class/lib/nunit-console.exe
15 | MONO_PATH=$topdir/nunit20:$topdir/class/lib:.
16 |
17 | for i in $@; do
18 | if [ "$i" = "all" ]; then
19 | fixture=""
20 | else
21 | fixture="/fixture:MonoTests.${i}"
22 | fi
23 | MONO_PATH=$MONO_PATH \
24 | ${NUNITCONSOLE} System.Drawing_test.dll $fixture
25 | done
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing.Imaging/tests.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ $# -eq 0 ]; then
4 | echo "You should give a list of test names such as: "
5 | echo "$0 System.DrawingCore.TestStringFormat"
6 | echo "or"
7 | echo "$0 all"
8 | exit 1
9 | fi
10 |
11 | cp ../../System.Drawing_test_default.dll .
12 |
13 | topdir=../../../..
14 | NUNITCONSOLE=$topdir/class/lib/default/nunit-console.exe
15 | MONO_PATH=$topdir/nunit20:$topdir/class/lib/default:.
16 |
17 |
18 | for i in $@; do
19 | if [ "$i" = "all" ]; then
20 | fixture=""
21 | else
22 | fixture="/fixture:MonoTests.${i}"
23 | fi
24 | MONO_PATH=$MONO_PATH \
25 | mono --debug ${NUNITCONSOLE} System.Drawing_test_default.dll $fixture
26 | done
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing.Text/InstalledFontCollectionTest.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Text.InstalledFontCollection unit tests
3 | //
4 | // Authors:
5 | // Sebastien Pouliot
6 | //
7 | // Copyright (C) 2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | using System;
30 | using System.IO;
31 | using System.DrawingCore;
32 | using System.DrawingCore.Text;
33 | using System.Security.Permissions;
34 | using NUnit.Framework;
35 |
36 | namespace MonoTests.System.DrawingCore.Text {
37 |
38 | [TestFixture]
39 | public class InstalledFontCollectionTest {
40 |
41 | [Test]
42 | public void Family ()
43 | {
44 | InstalledFontCollection ifc = new InstalledFontCollection ();
45 | Assert.IsNotNull (ifc.Families, "Families");
46 | }
47 |
48 | [Test]
49 | public void Dispose_Family ()
50 | {
51 | InstalledFontCollection ifc = new InstalledFontCollection ();
52 | int count = ifc.Families.Length;
53 | ifc.Dispose ();
54 | Assert.AreEqual (count, ifc.Families.Length, "Families");
55 | // there is *no* exception here
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/.gitattributes:
--------------------------------------------------------------------------------
1 | /tests-ms.sh -crlf
2 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/README:
--------------------------------------------------------------------------------
1 | README
2 |
3 | * To run the tests using the Mono rutime
4 |
5 | cd mcs/class/System.Drawing
6 | make run-test
7 |
8 | * test-ms.sh runs the test using the MS .Net runtime and stores the bimaps
9 | created by tests in the directory called MsNet.
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/SystemIconsTest.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Tests for System.DrawingCore.SystemIconsTest.cs
3 | //
4 | // Authors:
5 | // Sebastien Pouliot
6 | //
7 | // Copyright (C) 2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | using NUnit.Framework;
30 | using System;
31 | using System.DrawingCore;
32 | using System.Security.Permissions;
33 |
34 | namespace MonoTests.System.DrawingCore {
35 |
36 | [TestFixture]
37 | public class SystemIconsTest {
38 |
39 | [Test]
40 | public void Same ()
41 | {
42 | // SystemIcons always return the same icon
43 | Assert.IsTrue (Object.ReferenceEquals (SystemIcons.Application, SystemIcons.Application), "Same");
44 | }
45 |
46 | [Test]
47 | public void Dispose_SystemIcons ()
48 | {
49 | // SystemIcons icon's can't be disposed
50 | SystemIcons.Application.Dispose ();
51 | Assert.IsNotNull (SystemIcons.Application.ToBitmap ());
52 | }
53 |
54 | [Test]
55 | public void Dispose_Indirect ()
56 | {
57 | // SystemIcons icon's can't be disposed
58 | Icon app = SystemIcons.Application;
59 | app.Dispose ();
60 | Assert.IsNotNull (app.ToBitmap ());
61 | }
62 |
63 | [Test]
64 | public void Clone_Dispose ()
65 | {
66 | // Clones of SystemIcons icon's can be disposed
67 | Icon app = SystemIcons.Application;
68 | Icon clone = (Icon) app.Clone ();
69 | clone.Dispose ();
70 | Assert.Throws (() => clone.ToBitmap ());
71 | }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/TestFontConverter.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Test FontConverter class testing unit
3 | //
4 | // Author:
5 | //
6 | // Miguel de Icaza (miguel@gnome.org)
7 | //
8 | // (C) 2003 Ximian, Inc. http://www.ximian.com
9 | // Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 | using NUnit.Framework;
31 | using System;
32 | using System.DrawingCore;
33 | using System.Security.Permissions;
34 |
35 | namespace MonoTests.System.Drawing{
36 |
37 | [TestFixture]
38 | public class FontNameConverterTest {
39 |
40 | [Test]
41 | public void TestConvertFrom ()
42 | {
43 | FontConverter.FontNameConverter f = new FontConverter.FontNameConverter ();
44 | // returns "Times" under Linux and "Times New Roman" under Windows
45 | Assert.IsTrue ((f.ConvertFrom ("Times") as string).StartsWith ("Times"), "string test");
46 | Assert.IsTrue (f.GetStandardValuesSupported (), "standard values supported");
47 | Assert.IsFalse (f.GetStandardValuesExclusive (), "standard values exclusive");
48 | }
49 |
50 | [Test]
51 | public void ExTestConvertFrom ()
52 | {
53 | FontConverter.FontNameConverter f = new FontConverter.FontNameConverter ();
54 | Assert.Throws (() => f.ConvertFrom (null));
55 | }
56 |
57 | [Test]
58 | public void ExTestConvertFrom2 ()
59 | {
60 | FontConverter.FontNameConverter f = new FontConverter.FontNameConverter ();
61 | Assert.Throws (() => f.ConvertFrom (1));
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/16x16x16.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/16x16x16.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/1bit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/1bit.png
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/323511.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/323511.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/32bpp.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/32bpp.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/32x32x16.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/32x32x16.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/415581.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/415581.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/48x48x1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/48x48x1.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/4bit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/4bit.png
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/64x64x256.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/64x64x256.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/80509.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/80509.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/81674-2bpp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/81674-2bpp.png
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/81773-interlaced.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/81773-interlaced.gif
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/96x96x256.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/96x96x256.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/VisualPng.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/VisualPng.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/VisualPng1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/VisualPng1.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver-os2.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver-os2.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver1bit.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver1bit.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver24bits.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver24bits.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver24bits1.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver24bits1.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver32bits.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver32bits.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver32bits.tif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver32bits.tif
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver8bits.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/almogaver8bits.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/maketransparent.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/maketransparent.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/milkmateya01.emf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/milkmateya01.emf
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature-greyscale.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature-greyscale.jpg
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature24bits.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature24bits.gif
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature24bits.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature24bits.jpg
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature24bits87.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/nature24bits87.gif
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/non-inverted.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/non-inverted.bmp
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/only256.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/only256.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/smiley.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/smiley.ico
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/telescope_01.wmf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zkweb-framework/ZKWeb.System.Drawing/fa778da1cd31cfb71bcab9a68bf0d3bbab69cc72/src/ZKWeb.System.Drawing.Tests/System.Drawing/bitmaps/telescope_01.wmf
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/tests-ms.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ $# -eq 0 ]; then
4 | echo "You should give a list of test names such as: "
5 | echo "$0 System.DrawingCore.TestStringFormat"
6 | echo "or"
7 | echo "$0 all"
8 | exit 1
9 | fi
10 |
11 | export MSNet=Yes
12 | cp ../../System.Drawing_test_default.dll .
13 | topdir=../../../..
14 | NUNITCONSOLE=$topdir/class/lib/default/nunit-console.exe
15 | MONO_PATH=$topdir/nunit20:$topdir/class/lib:.
16 |
17 | for i in $@; do
18 | if [ "$i" = "all" ]; then
19 | fixture=""
20 | else
21 | fixture="/fixture:MonoTests.${i}"
22 | fi
23 | MONO_PATH=$MONO_PATH \
24 | ${NUNITCONSOLE} System.Drawing_test_default.dll $fixture
25 | done
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/System.Drawing/tests.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ $# -eq 0 ]; then
4 | echo "You should give a list of test names such as: "
5 | echo "$0 System.DrawingCore.TestStringFormat"
6 | echo "or"
7 | echo "$0 all"
8 | exit 1
9 | fi
10 |
11 | cp ../../System.Drawing_test_default.dll .
12 |
13 | topdir=../../../..
14 | NUNITCONSOLE=$topdir/class/lib/default/nunit-console.exe
15 | MONO_PATH=$topdir/nunit20:$topdir/class/lib/default:.
16 |
17 |
18 | for i in $@; do
19 | if [ "$i" = "all" ]; then
20 | fixture=""
21 | else
22 | fixture="/fixture:MonoTests.${i}"
23 | fi
24 | MONO_PATH=$MONO_PATH \
25 | mono --debug ${NUNITCONSOLE} System.Drawing_test_default.dll $fixture
26 | done
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing.Tests/ZKWeb.System.Drawing.Tests.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net461;netcoreapp2.0
5 | true
6 | ZKWeb.System.Drawing.Tests
7 | ZKWeb.System.Drawing.Tests
8 | true
9 | false
10 | false
11 | false
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | $(DefineConstants);CORECLR;NETCORE
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyConfiguration("")]
9 | [assembly: AssemblyCompany("")]
10 | [assembly: AssemblyProduct("ZKWeb.System.Drawing")]
11 | [assembly: AssemblyTrademark("")]
12 |
13 | // Setting ComVisible to false makes the types in this assembly not visible
14 | // to COM components. If you need to access a type in this assembly from
15 | // COM, set the ComVisible attribute to true on that type.
16 | [assembly: ComVisible(false)]
17 |
18 | // The following GUID is for the ID of the typelib if this project is exposed to COM
19 | [assembly: Guid("c86230ad-bbd1-406a-9a31-793e0fd86684")]
20 |
21 | [assembly: InternalsVisibleTo("ZKWeb.System.Drawing.Tests")]
22 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/.gitattributes:
--------------------------------------------------------------------------------
1 | /ToolboxItem.cs -crlf
2 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/CategoryNameCollection.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Design.CategoryNameCollection.cs
3 | //
4 | // Authors:
5 | // Alejandro Sánchez Acosta
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | //
8 | // (C) Alejandro Sánchez Acosta
9 | // (C) 2003 Andreas Nahr
10 | //
11 |
12 | //
13 | // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 |
35 | using System.Collections;
36 |
37 | namespace System.DrawingCore.Design
38 | {
39 | public sealed class CategoryNameCollection : ReadOnlyCollectionBase
40 | {
41 |
42 | public CategoryNameCollection (CategoryNameCollection value)
43 | {
44 | if (value == null)
45 | throw new ArgumentNullException ("value");
46 | InnerList.AddRange (value);
47 | }
48 |
49 | public CategoryNameCollection (string[] value)
50 | {
51 | if (value == null)
52 | throw new ArgumentNullException ("value");
53 | InnerList.AddRange (value);
54 | }
55 |
56 | public string this[int index] {
57 | get {
58 | return (string) InnerList[index];
59 | }
60 | }
61 |
62 | public bool Contains (string value)
63 | {
64 | return InnerList.Contains (value);
65 | }
66 |
67 | public void CopyTo (string[] array, int index)
68 | {
69 | InnerList.CopyTo (array, index);
70 | }
71 |
72 | public int IndexOf (string value)
73 | {
74 | return InnerList.IndexOf (value);
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/IPropertyValueUIService.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.IPropertyValueUIService.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | //
8 |
9 | //
10 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
11 | //
12 | // Permission is hereby granted, free of charge, to any person obtaining
13 | // a copy of this software and associated documentation files (the
14 | // "Software"), to deal in the Software without restriction, including
15 | // without limitation the rights to use, copy, modify, merge, publish,
16 | // distribute, sublicense, and/or sell copies of the Software, and to
17 | // permit persons to whom the Software is furnished to do so, subject to
18 | // the following conditions:
19 | //
20 | // The above copyright notice and this permission notice shall be
21 | // included in all copies or substantial portions of the Software.
22 | //
23 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | //
31 |
32 | using System.DrawingCore;
33 | using System.ComponentModel;
34 |
35 | namespace System.DrawingCore.Design
36 | {
37 | public interface IPropertyValueUIService
38 | {
39 |
40 | #region Methods
41 | void AddPropertyValueUIHandler (PropertyValueUIHandler newHandler);
42 | PropertyValueUIItem[] GetPropertyUIValueItems (ITypeDescriptorContext context, PropertyDescriptor propDesc);
43 |
44 | void NotifyPropertyValueUIItemsChanged ();
45 |
46 | void RemovePropertyValueUIHandler (PropertyValueUIHandler newHandler);
47 | #endregion Methods
48 |
49 | #region Events
50 | event EventHandler PropertyUIValueItemsChanged;
51 | #endregion Events
52 | }
53 | }
54 |
55 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/IToolboxItemProvider.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining
5 | // a copy of this software and associated documentation files (the
6 | // "Software"), to deal in the Software without restriction, including
7 | // without limitation the rights to use, copy, modify, merge, publish,
8 | // distribute, sublicense, and/or sell copies of the Software, and to
9 | // permit persons to whom the Software is furnished to do so, subject to
10 | // the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be
13 | // included in all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | //
23 | // Authors:
24 | //
25 | // Jordi Mas i Hernandez
26 | //
27 | //
28 |
29 |
30 | namespace System.DrawingCore.Design
31 | {
32 | public interface IToolboxItemProvider
33 | {
34 | ToolboxItemCollection Items { get; }
35 | }
36 | }
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/IToolboxUser.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.IToolboxUser.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | //
8 |
9 | //
10 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
11 | //
12 | // Permission is hereby granted, free of charge, to any person obtaining
13 | // a copy of this software and associated documentation files (the
14 | // "Software"), to deal in the Software without restriction, including
15 | // without limitation the rights to use, copy, modify, merge, publish,
16 | // distribute, sublicense, and/or sell copies of the Software, and to
17 | // permit persons to whom the Software is furnished to do so, subject to
18 | // the following conditions:
19 | //
20 | // The above copyright notice and this permission notice shall be
21 | // included in all copies or substantial portions of the Software.
22 | //
23 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | //
31 |
32 | namespace System.DrawingCore.Design
33 | {
34 | public interface IToolboxUser
35 | {
36 | bool GetToolSupported (ToolboxItem tool);
37 |
38 | void ToolPicked (ToolboxItem tool);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/PaintValueEventArgs.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.PaintvalueEventArgs.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | //
8 |
9 | //
10 | // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
11 | //
12 | // Permission is hereby granted, free of charge, to any person obtaining
13 | // a copy of this software and associated documentation files (the
14 | // "Software"), to deal in the Software without restriction, including
15 | // without limitation the rights to use, copy, modify, merge, publish,
16 | // distribute, sublicense, and/or sell copies of the Software, and to
17 | // permit persons to whom the Software is furnished to do so, subject to
18 | // the following conditions:
19 | //
20 | // The above copyright notice and this permission notice shall be
21 | // included in all copies or substantial portions of the Software.
22 | //
23 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | //
31 |
32 | using System.ComponentModel;
33 |
34 | namespace System.DrawingCore.Design
35 | {
36 | public class PaintValueEventArgs : EventArgs
37 | {
38 | private ITypeDescriptorContext context;
39 | private object value;
40 | private Graphics graphics;
41 | private Rectangle bounds;
42 |
43 | public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds)
44 | {
45 | if (graphics == null)
46 | throw new ArgumentNullException ("graphics");
47 | this.context = context;
48 | this.value = value;
49 | this.graphics = graphics;
50 | this.bounds = bounds;
51 | }
52 |
53 | public Rectangle Bounds
54 | {
55 | get {
56 | return bounds;
57 | }
58 | }
59 |
60 | public ITypeDescriptorContext Context
61 | {
62 | get {
63 | return context;
64 | }
65 | }
66 |
67 | public Graphics Graphics
68 | {
69 | get {
70 | return graphics;
71 | }
72 | }
73 |
74 | public object Value
75 | {
76 | get {
77 | return value;
78 | }
79 | }
80 | }
81 | }
82 |
83 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/PropertyValueItem.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Design.PropertyValueItem.cs
3 | //
4 | // Authors:
5 | // Alejandro Sánchez Acosta
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | //
8 | // (C) Alejandro Sánchez Acosta
9 | // (C) 2003 Andreas Nahr
10 | //
11 |
12 | //
13 | // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 |
35 | namespace System.DrawingCore.Design
36 | {
37 | public class PropertyValueUIItem
38 | {
39 |
40 | private Image uiItemImage;
41 | private PropertyValueUIItemInvokeHandler handler;
42 | private string tooltip;
43 |
44 | public PropertyValueUIItem (Image uiItemImage,
45 | PropertyValueUIItemInvokeHandler handler, string tooltip)
46 | {
47 | if (uiItemImage == null)
48 | throw new ArgumentNullException ("uiItemImage");
49 | if (handler == null)
50 | throw new ArgumentNullException ("handler");
51 | this.uiItemImage = uiItemImage;
52 | this.handler = handler;
53 | this.tooltip = tooltip;
54 | }
55 |
56 | public virtual Image Image
57 | {
58 | get
59 | {
60 | return uiItemImage;
61 | }
62 | }
63 |
64 | public virtual PropertyValueUIItemInvokeHandler InvokeHandler
65 | {
66 | get
67 | {
68 | return handler;
69 | }
70 | }
71 |
72 | public virtual string ToolTip
73 | {
74 | get
75 | {
76 | return tooltip;
77 | }
78 | }
79 |
80 | public virtual void Reset()
81 | {
82 | // To be overriden in child classes
83 | }
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/PropertyValueUIHandler.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.PropertyValueUIHandler.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | using System.Collections;
30 | using System.ComponentModel;
31 |
32 | namespace System.DrawingCore.Design {
33 |
34 | public delegate void PropertyValueUIHandler (ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList valueUIItemList);
35 | }
36 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/PropertyValueUIItemInvokeHandler.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.PropertyValueUIItemInvokeHandler.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | using System.ComponentModel;
30 |
31 | namespace System.DrawingCore.Design {
32 |
33 | public delegate void PropertyValueUIItemInvokeHandler (
34 | ITypeDescriptorContext context,
35 | PropertyDescriptor descriptor,
36 | PropertyValueUIItem invokedItem);
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/ToolboxComponentsCreatedEventArgs.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.ToolboxComponentsCreatedEventArgs.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | //
8 | //
9 |
10 | //
11 | // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 |
33 | using System.ComponentModel;
34 |
35 | namespace System.DrawingCore.Design
36 | {
37 | public class ToolboxComponentsCreatedEventArgs : EventArgs
38 | {
39 | private IComponent[] components;
40 |
41 | public ToolboxComponentsCreatedEventArgs (IComponent[] components) {
42 | this.components = components;
43 | }
44 |
45 | public IComponent[] Components {
46 | get {
47 | return components;
48 | }
49 | }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/ToolboxComponentsCreatedEventHandler.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.IDesignerHost.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Design {
30 |
31 | public delegate void ToolboxComponentsCreatedEventHandler (object sender, ToolboxComponentsCreatedEventArgs e);
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/ToolboxComponentsCreatingEventArgs.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Design.ToolboxComponentsCreatingEventArgs.cs
3 | //
4 | // Author:
5 | // Alejandro Sánchez Acosta
6 | //
7 | // (C) Alejandro Sánchez Acosta
8 | //
9 |
10 | //
11 | // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 |
33 | using System.ComponentModel.Design;
34 | using System.Security.Permissions;
35 |
36 | namespace System.DrawingCore.Design
37 | {
38 | public class ToolboxComponentsCreatingEventArgs : EventArgs
39 | {
40 | private IDesignerHost host;
41 |
42 | public ToolboxComponentsCreatingEventArgs (IDesignerHost host)
43 | {
44 | this.host = host;
45 | }
46 |
47 | public IDesignerHost DesignerHost {
48 | get {
49 | return host;
50 | }
51 | }
52 | }
53 | }
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/ToolboxComponentsCreatingEventHandler.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.ToolboxComponentsCreatingEventHandler.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Design {
30 |
31 | public delegate void ToolboxComponentsCreatingEventHandler (object sender, ToolboxComponentsCreatingEventArgs e);
32 | }
33 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/ToolboxItemCollection.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Design.ToolboxItemCollection.cs
3 | //
4 | // Authors:
5 | // Martin Willemoes Hansen (mwh@sysrq.dk)
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | //
8 | // (C) 2003 Martin Willemoes Hansen
9 | // (C) 2003 Andreas Nahr
10 | //
11 |
12 | //
13 | // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 |
35 | using System.Collections;
36 | using System.Security.Permissions;
37 |
38 | namespace System.DrawingCore.Design
39 | {
40 | public sealed class ToolboxItemCollection : ReadOnlyCollectionBase
41 | {
42 |
43 | public ToolboxItemCollection (ToolboxItem[] value) : base()
44 | {
45 | InnerList.AddRange (value);
46 | }
47 |
48 | public ToolboxItemCollection (ToolboxItemCollection value) : base()
49 | {
50 | InnerList.AddRange (value);
51 | }
52 |
53 | public ToolboxItem this [int index] {
54 | get { return (ToolboxItem) InnerList[index]; }
55 | }
56 |
57 | public bool Contains (ToolboxItem value)
58 | {
59 | return InnerList.Contains (value);
60 | }
61 |
62 | public void CopyTo (ToolboxItem[] array, int index)
63 | {
64 | InnerList.CopyTo (array, index);
65 | }
66 |
67 | public int IndexOf (ToolboxItem value)
68 | {
69 | return InnerList.IndexOf (value);
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/ToolboxItemCreatorCallback.cs:
--------------------------------------------------------------------------------
1 | // System.DrawingCore.Design.ToolboxItemCreatorCallback.cs
2 | //
3 | // Author:
4 | // Alejandro Sánchez Acosta
5 | //
6 | // (C) Alejandro Sánchez Acosta
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Design {
30 |
31 | public delegate ToolboxItem ToolboxItemCreatorCallback(
32 | object serializedObject,
33 | string format);
34 | }
35 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Design/UITypeEditorEditStyle.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Design.UITypeEditorEditStyle.cs
3 | //
4 | // (C) 2001 Ximian, Inc. http://www.ximian.com
5 | // Author: Dennis Hayes (dennish@raytek.com)
6 | //
7 |
8 | //
9 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 | using System;
31 | namespace System.DrawingCore.Design
32 | {
33 | public enum UITypeEditorEditStyle{
34 | DropDown=3,
35 | Modal=2,
36 | None=1
37 | }
38 | }
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/Blend.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.Blend.cs
3 | //
4 | // Authors:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | // Ravindra (rkumar@novell.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc. http://www.ximian.com
9 | // (C) 2004 Novell, Inc. http://www.novell.com
10 | //
11 |
12 | //
13 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 | using System;
35 |
36 | namespace System.DrawingCore.Drawing2D
37 | {
38 | ///
39 | /// Summary description for Blend.
40 | ///
41 | public sealed class Blend
42 | {
43 | private float [] positions;
44 | private float [] factors;
45 |
46 | public Blend ()
47 | {
48 | positions = new float [1];
49 | factors = new float [1];
50 | }
51 |
52 | public Blend (int count)
53 | {
54 | positions = new float [count];
55 | factors = new float [count];
56 | }
57 |
58 | public float [] Factors {
59 | get {
60 | return factors;
61 | }
62 |
63 | set {
64 | factors = value;
65 | }
66 | }
67 |
68 | public float [] Positions {
69 | get {
70 | return positions;
71 | }
72 |
73 | set {
74 | positions = value;
75 | }
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/ColorBlend.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.ColorBlend.cs
3 | //
4 | // Authors:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | // Ravindra (rkumar@novell.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc. http://www.ximian.com
9 | // Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D
32 | {
33 | public sealed class ColorBlend
34 | {
35 | private float [] positions;
36 | private Color [] colors;
37 |
38 | public ColorBlend ()
39 | {
40 | positions = new float [1];
41 | colors = new Color [1];
42 | }
43 |
44 | public ColorBlend (int count)
45 | {
46 | positions = new float [count];
47 | colors = new Color [count];
48 | }
49 |
50 | public Color [] Colors {
51 | get {
52 | return colors;
53 | }
54 |
55 | set {
56 | colors = value;
57 | }
58 | }
59 |
60 | public float [] Positions {
61 | get {
62 | return positions;
63 | }
64 |
65 | set {
66 | positions = value;
67 | }
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/CombineMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.CombineMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum CombineMode {
34 | Complement = 5,
35 | Exclude = 4,
36 | Intersect = 1,
37 | Replace = 0,
38 | Union = 2,
39 | Xor = 3
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/CompostingMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.CompostingMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum CompositingMode {
34 | SourceCopy = 1,
35 | SourceOver = 0
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/CompostingQuality.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.CompostingQuality.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum CompositingQuality {
34 | AssumeLinear = 4,
35 | Default = 0,
36 | GammaCorrected = 3,
37 | HighQuality = 2,
38 | HighSpeed = 1,
39 | Invalid = -1
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/CoordinateSpace.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.CoordinateSpace.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum CoordinateSpace {
34 | Device = 2,
35 | Page = 1,
36 | World = 0
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/DashCap.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.DashCap.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum DashCap {
34 | Flat,
35 | Round = 2,
36 | Triangle = 3
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/DashStyle.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.DashStyle.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002/3 Ximian, Inc
8 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
9 | //
10 | // Permission is hereby granted, free of charge, to any person obtaining
11 | // a copy of this software and associated documentation files (the
12 | // "Software"), to deal in the Software without restriction, including
13 | // without limitation the rights to use, copy, modify, merge, publish,
14 | // distribute, sublicense, and/or sell copies of the Software, and to
15 | // permit persons to whom the Software is furnished to do so, subject to
16 | // the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be
19 | // included in all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 | //
29 |
30 | namespace System.DrawingCore.Drawing2D {
31 |
32 | public enum DashStyle {
33 | Custom = 5,
34 | Dash = 1,
35 | DashDot = 3,
36 | DashDotDot = 4,
37 | Dot = 2,
38 | Solid = 0
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/FillMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.FillMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum FillMode {
34 | Alternate = 0,
35 | Winding = 1
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/FlushIntention.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.FlushIntention.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum FlushIntention {
34 | Flush = 0,
35 | Sync = 1
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/GraphicsContainer.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.GraphicsContainer.cs
3 | //
4 | // Authors:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public sealed class GraphicsContainer : MarshalByRefObject {
34 |
35 | private uint nativeState;
36 |
37 | internal GraphicsContainer (uint state)
38 | {
39 | nativeState = state;
40 | }
41 |
42 | internal uint NativeObject {
43 | get {
44 | return nativeState;
45 | }
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/GraphicsState.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.GraphicsState.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002/3 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 | using System;
33 |
34 | namespace System.DrawingCore.Drawing2D {
35 | ///
36 | /// Summary description for GraphicsState.
37 | ///
38 | public sealed class GraphicsState : MarshalByRefObject
39 | {
40 | // All members inherited
41 | internal uint nativeState;
42 |
43 | // Constructor
44 | internal GraphicsState()
45 | {
46 | // Nothing to be done here
47 | }
48 |
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/InterpolationMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.InterpolationMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum InterpolationMode {
34 | Bicubic = 4,
35 | Bilinear = 3,
36 | Default = 0,
37 | High = 2,
38 | HighQualityBicubic = 7,
39 | HighQualityBilinear = 6,
40 | Invalid = -1,
41 | Low = 1,
42 | NearestNeighbor = 5
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/LineCap.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.LineCap.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum LineCap {
34 | AnchorMask = 240,
35 | ArrowAnchor = 20,
36 | Custom = 255,
37 | DiamondAnchor = 19,
38 | Flat = 0,
39 | NoAnchor = 16,
40 | Round = 2,
41 | RoundAnchor = 18,
42 | Square = 1,
43 | SquareAnchor = 17,
44 | Triangle = 3
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/LineJoin.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.LineJoin.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum LineJoin {
34 | Bevel = 1,
35 | Miter = 0,
36 | MiterClipped = 3,
37 | Round = 2
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/LinearGradientMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.LinearGradientMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum LinearGradientMode {
34 | BackwardDiagonal = 3,
35 | ForwardDiagonal = 2,
36 | Horizontal = 0,
37 | Vertical = 1
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/MatrixOrder.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.MatrixOrder.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum MatrixOrder {
34 | Append = 1,
35 | Prepend = 0
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/PathData.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.PathData.cs
3 | //
4 | // Authors:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | // Sebastien Pouliot
8 | //
9 | // (C) 2002/3 Ximian, Inc
10 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
11 | //
12 | // Permission is hereby granted, free of charge, to any person obtaining
13 | // a copy of this software and associated documentation files (the
14 | // "Software"), to deal in the Software without restriction, including
15 | // without limitation the rights to use, copy, modify, merge, publish,
16 | // distribute, sublicense, and/or sell copies of the Software, and to
17 | // permit persons to whom the Software is furnished to do so, subject to
18 | // the following conditions:
19 | //
20 | // The above copyright notice and this permission notice shall be
21 | // included in all copies or substantial portions of the Software.
22 | //
23 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | //
31 |
32 | namespace System.DrawingCore.Drawing2D
33 | {
34 | public sealed class PathData
35 | {
36 | private PointF[] points;
37 | private byte[] types;
38 |
39 | public PathData ()
40 | {
41 | }
42 |
43 | public PointF[] Points {
44 | get { return points; }
45 | set { points = value; }
46 | }
47 |
48 | public byte[] Types {
49 | get { return types; }
50 | set { types = value; }
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/PathPointType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.PathPointType.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum PathPointType {
34 | Bezier = 3,
35 | Bezier3 = 3,
36 | CloseSubpath = 128,
37 | DashMode = 16,
38 | Line = 1,
39 | PathMarker = 32,
40 | PathTypeMask = 7,
41 | Start = 0
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/PenAlignment.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.PenAlignment.cs
3 | //
4 | // Author:
5 | // Miguel de Icaza (miguel@ximian.com)
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc http://www.ximian.com
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum PenAlignment {
34 | Center = 0,
35 | Inset = 1,
36 | Outset = 2,
37 | Left = 3,
38 | Right =4
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/PenType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.PenType.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002/3 Ximian, Inc
8 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
9 | //
10 | // Permission is hereby granted, free of charge, to any person obtaining
11 | // a copy of this software and associated documentation files (the
12 | // "Software"), to deal in the Software without restriction, including
13 | // without limitation the rights to use, copy, modify, merge, publish,
14 | // distribute, sublicense, and/or sell copies of the Software, and to
15 | // permit persons to whom the Software is furnished to do so, subject to
16 | // the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be
19 | // included in all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 | //
29 |
30 | namespace System.DrawingCore.Drawing2D {
31 |
32 | public enum PenType {
33 | HatchFill = 1,
34 | LinearGradient = 4,
35 | PathGradient = 3,
36 | SolidColor = 0,
37 | TextureFill = 2
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/PixelOffsetMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.PixelOffsetMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum PixelOffsetMode {
34 | Default = 0,
35 | Half = 4,
36 | HighQuality = 2,
37 | HighSpeed = 1,
38 | Invalid = -1,
39 | None = 3
40 | }
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/QualityMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.QualityMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum QualityMode {
34 | Default = 0,
35 | High = 2,
36 | Invalid = -1,
37 | Low = 1
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/RegionData.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.RegionData.cs
3 | //
4 | // Authors:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | //
10 |
11 | //
12 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
13 | //
14 | // Permission is hereby granted, free of charge, to any person obtaining
15 | // a copy of this software and associated documentation files (the
16 | // "Software"), to deal in the Software without restriction, including
17 | // without limitation the rights to use, copy, modify, merge, publish,
18 | // distribute, sublicense, and/or sell copies of the Software, and to
19 | // permit persons to whom the Software is furnished to do so, subject to
20 | // the following conditions:
21 | //
22 | // The above copyright notice and this permission notice shall be
23 | // included in all copies or substantial portions of the Software.
24 | //
25 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 | //
33 |
34 | using System;
35 |
36 | namespace System.DrawingCore.Drawing2D
37 | {
38 | ///
39 | /// Summary description for RegionData.
40 | ///
41 | public sealed class RegionData
42 | {
43 | private byte[] data;
44 |
45 | internal RegionData () { }
46 |
47 | public byte[] Data {
48 | get {return data;}
49 | set {data = value;}
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/SmoothingMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.SmoothingMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002/3 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum SmoothingMode {
34 | AntiAlias = 4,
35 | Default = 0,
36 | HighQuality = 2,
37 | HighSpeed = 1,
38 | Invalid = -1,
39 | None = 3
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/WarpMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.WarpMode.cs
3 | //
4 | // Author:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | //
8 | // (C) 2002 Ximian, Inc
9 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Drawing2D {
32 |
33 | public enum WarpMode {
34 | Bilinear = 1,
35 | Perspective = 0
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Drawing2D/WrapMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Drawing2D.WrapMode.cs
3 | //
4 | // Authors:
5 | // Stefan Maierhofer
6 | // Dennis Hayes (dennish@Raytek.com)
7 | // Ravindra (rkumar@novell.com)
8 | //
9 | // (C) 2002/3 Ximian, Inc. http://www.ximian.com
10 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
11 | //
12 | // Permission is hereby granted, free of charge, to any person obtaining
13 | // a copy of this software and associated documentation files (the
14 | // "Software"), to deal in the Software without restriction, including
15 | // without limitation the rights to use, copy, modify, merge, publish,
16 | // distribute, sublicense, and/or sell copies of the Software, and to
17 | // permit persons to whom the Software is furnished to do so, subject to
18 | // the following conditions:
19 | //
20 | // The above copyright notice and this permission notice shall be
21 | // included in all copies or substantial portions of the Software.
22 | //
23 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 | //
31 |
32 | namespace System.DrawingCore.Drawing2D {
33 |
34 | public enum WrapMode {
35 | Tile,
36 | TileFlipX,
37 | TileFlipY,
38 | TileFlipXY,
39 | Clamp
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ColorAdjustType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ColorAdjustType.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum ColorAdjustType {
32 | Any = 6,
33 | Bitmap = 1,
34 | Brush = 2,
35 | Count = 5,
36 | Default = 0,
37 | Pen = 3,
38 | Text = 4
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ColorChannelFlag.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ColorChannelFlag.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum ColorChannelFlag {
32 | ColorChannelC = 0,
33 | ColorChannelK = 3,
34 | ColorChannelLast = 4,
35 | ColorChannelM = 1,
36 | ColorChannelY = 2
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ColorMap.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ColorMap.cs
3 | //
4 | // Authors:
5 | // Everaldo Canuto (everaldo.canuto@bol.com.br)
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | // Dennis Hayes (dennish@raytek.com)
8 | //
9 | // (C) 2002 Ximian, Inc. http://www.ximian.com
10 | //
11 |
12 | //
13 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 |
35 | using System;
36 | using System.IO;
37 | using System.Reflection;
38 |
39 | namespace System.DrawingCore.Imaging {
40 | public sealed class ColorMap {
41 |
42 | private Color newColor;
43 | private Color oldColor;
44 |
45 | // constructors
46 | public ColorMap() {
47 | }
48 |
49 | // properties
50 | public Color NewColor {
51 | get { return newColor; }
52 | set { newColor = value; }
53 | }
54 |
55 | public Color OldColor {
56 | get { return oldColor; }
57 | set { oldColor = value; }
58 | }
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ColorMapType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ColorMapType.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum ColorMapType {
32 | Brush = 1,
33 | Default = 0
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ColorMatrixFlag.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ColorMatrixFlag.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum ColorMatrixFlag{
32 | AltGrays = 2,
33 | Default = 0,
34 | SkipGrays = 1
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ColorMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ColorMode.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum ColorMode {
32 | Argb32Mode = 0,
33 | Argb64Mode = 1
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/EmfType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.EmfType.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum EmfType {
32 | EmfOnly = 3,
33 | EmfPlusDual = 5,
34 | EmfPlusOnly = 4
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/EncoderParameterValueType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.EncoderParameterValueType.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum EncoderParameterValueType {
32 | ValueTypeAscii = 2,
33 | ValueTypeByte = 1,
34 | ValueTypeLong = 4,
35 | ValueTypeLongRange = 6,
36 | ValueTypeRational = 5,
37 | ValueTypeRationalRange = 8,
38 | ValueTypeShort = 3,
39 | ValueTypeUndefined = 7
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/EncoderValue.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.EncoderValue.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum EncoderValue {
32 | ColorTypeCMYK = 0,
33 | ColorTypeYCCK = 1,
34 | CompressionCCITT3 = 3,
35 | CompressionCCITT4 = 4,
36 | CompressionLZW = 2,
37 | CompressionNone = 6,
38 | CompressionRle = 5,
39 | Flush = 20,
40 | FrameDimensionPage = 23,
41 | FrameDimensionResolution = 22,
42 | FrameDimensionTime = 21,
43 | LastFrame = 19,
44 | MultiFrame = 18,
45 | RenderNonProgressive = 12,
46 | RenderProgressive = 11,
47 | ScanMethodInterlaced = 7,
48 | ScanMethodNonInterlaced = 8,
49 | TransformFlipHorizontal = 16,
50 | TransformFlipVertical = 17,
51 | TransformRotate180 = 14,
52 | TransformRotate270 = 15,
53 | TransformRotate90 = 13,
54 | VersionGif87 = 9,
55 | VersionGif89 = 10
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ImageCodecFlags.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ImageCodecFlags.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | [Flags]
32 | public enum ImageCodecFlags {
33 | BlockingDecode = 32,
34 | Builtin = 65536,
35 | Decoder = 2,
36 | Encoder = 1,
37 | SeekableEncode = 16,
38 | SupportBitmap = 4,
39 | SupportVector = 8,
40 | System = 131072,
41 | User = 262144
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ImageFlags.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ImageFlags.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | [Flags]
32 | public enum ImageFlags {
33 | Caching = 131072,
34 | ColorSpaceCmyk = 32,
35 | ColorSpaceGray = 64,
36 | ColorSpaceRgb = 16,
37 | ColorSpaceYcbcr = 128,
38 | ColorSpaceYcck = 256,
39 | HasAlpha = 2,
40 | HasRealDpi = 4096,
41 | HasRealPixelSize = 8192,
42 | HasTranslucent = 4,
43 | None = 0,
44 | PartiallyScalable = 8,
45 | ReadOnly = 65536,
46 | Scalable = 1
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/ImageLockMode.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.ImageLockMode.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum ImageLockMode {
32 | ReadOnly = 1,
33 | ReadWrite = 3,
34 | UserInputBuffer = 4,
35 | WriteOnly = 2
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/MetafileFrameUnit.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.MetafileFrameUnit.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | public enum MetafileFrameUnit {
32 | Document = 5,
33 | GdiCompatible = 7,
34 | Inch = 4,
35 | Millimeter = 6,
36 | Pixel = 2,
37 | Point = 3
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/MetafileType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.MetafileType
3 | //
4 | // Authors:
5 | // Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 | //
7 | // (C) 2002 Ximian, Inc (http://www.ximian.com)
8 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
9 | //
10 | // Permission is hereby granted, free of charge, to any person obtaining
11 | // a copy of this software and associated documentation files (the
12 | // "Software"), to deal in the Software without restriction, including
13 | // without limitation the rights to use, copy, modify, merge, publish,
14 | // distribute, sublicense, and/or sell copies of the Software, and to
15 | // permit persons to whom the Software is furnished to do so, subject to
16 | // the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be
19 | // included in all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 | //
29 |
30 | namespace System.DrawingCore.Imaging {
31 |
32 | public enum MetafileType {
33 | Invalid = 0,
34 | Wmf = 1,
35 | WmfPlaceable = 2,
36 | Emf = 3,
37 | EmfPlusOnly = 4,
38 | EmfPlusDual = 5
39 | }
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/PaletteFlags.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.PaletteFlags.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Imaging {
30 |
31 | [Flags]
32 | public enum PaletteFlags {
33 | GrayScale = 2,
34 | Halftone = 4,
35 | HasAlpha = 1
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/PixelFormat.cs:
--------------------------------------------------------------------------------
1 | // created on 20.02.2002 at 21:18
2 | //
3 | // Image.cs
4 | //
5 | // Author: Christian Meyer
6 | // eMail: Christian.Meyer@cs.tum.edu
7 | // Dennis Hayes
8 | // dennish@raytek.com
9 | //
10 | // (C) 2002 Ximian, Inc. http://www.ximian.com
11 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 |
33 | namespace System.DrawingCore.Imaging {
34 |
35 | public enum PixelFormat {
36 | Alpha = 262144,
37 | Canonical = 2097152,
38 | DontCare = 0,
39 | Extended = 1048576,
40 | Format16bppArgb1555 = 397319,
41 | Format16bppGrayScale = 1052676,
42 | Format16bppRgb555 = 135173,
43 | Format16bppRgb565 = 135174,
44 | Format1bppIndexed = 196865,
45 | Format24bppRgb = 137224,
46 | Format32bppArgb = 2498570,
47 | Format32bppPArgb = 925707,
48 | Format32bppRgb = 139273,
49 | Format48bppRgb = 1060876,
50 | Format4bppIndexed = 197634,
51 | Format64bppArgb = 3424269,
52 | Format64bppPArgb = 1851406,
53 | Format8bppIndexed = 198659,
54 | Gdi = 131072,
55 | Indexed = 65536,
56 | Max = 15,
57 | PAlpha = 524288,
58 | Undefined = 0 //shows up in enumcheck as second "dontcare".
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/PlayRecordCallback.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.PlayRecordCallback.cs
3 | //
4 | // Author: Everaldo Canuto
5 | // eMail: everaldo.canuto@bol.com.br
6 | //
7 | // (C) 2002 Ximian, Inc. http://www.ximian.com
8 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
9 | //
10 | // Permission is hereby granted, free of charge, to any person obtaining
11 | // a copy of this software and associated documentation files (the
12 | // "Software"), to deal in the Software without restriction, including
13 | // without limitation the rights to use, copy, modify, merge, publish,
14 | // distribute, sublicense, and/or sell copies of the Software, and to
15 | // permit persons to whom the Software is furnished to do so, subject to
16 | // the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be
19 | // included in all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 | //
29 |
30 | namespace System.DrawingCore.Imaging {
31 |
32 | public delegate void PlayRecordCallback(
33 | EmfPlusRecordType recordType,
34 | int flags,
35 | int dataSize,
36 | IntPtr recordData
37 | );
38 | }
39 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Imaging/PropertyItem.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Imaging.PropertyItem.cs
3 | //
4 | // Authors:
5 | // Everaldo Canuto (everaldo.canuto@bol.com.br)
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | // Dennis Hayes (dennish@raytek.com)
8 | //
9 | // (C) 2002 Ximian, Inc. http://www.ximian.com
10 | //
11 |
12 | //
13 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 |
35 | using System;
36 |
37 | namespace System.DrawingCore.Imaging {
38 |
39 | public sealed class PropertyItem
40 | {
41 |
42 | private int id;
43 | private int len;
44 | private short type;
45 | private byte[] value;
46 |
47 | //constructor
48 | internal PropertyItem()
49 | {
50 | //Nothing to be done here
51 | }
52 |
53 |
54 | // properties
55 | public int Id {
56 | get { return id; }
57 | set { id = value; }
58 | }
59 |
60 | public int Len {
61 | get { return len; }
62 | set { len = value; }
63 | }
64 |
65 | public short Type {
66 | get { return type; }
67 | set { type = value; }
68 | }
69 |
70 | public byte[] Value {
71 | get { return this.value; }
72 | set { this.value = value; }
73 | }
74 |
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/.gitattributes:
--------------------------------------------------------------------------------
1 | /Duplex.cs -crlf
2 | /PaperKind.cs -crlf
3 | /PaperSourceKind.cs -crlf
4 | /PrintPageEventHandler.cs -crlf
5 | /PrintRange.cs -crlf
6 | /PrinterResolution.cs -crlf
7 | /PrinterResolutionKind.cs -crlf
8 | /PrinterUnit.cs -crlf
9 | /PrintingPermissionLevel.cs -crlf
10 | /QueryPageSettingsEventArgs.cs -crlf
11 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/Duplex.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Duplex.cs
3 | //
4 | // (C) 2001 Ximian, Inc. http://www.ximian.com
5 | // Author: Dennis Hayes (dennish@raytek.com)
6 | //
7 |
8 | //
9 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 | using System;
31 | namespace System.DrawingCore.Printing
32 | {
33 | [Serializable]
34 | public enum Duplex {
35 | Default = -1,
36 | Horizontal = 3,
37 | Simplex = 1,
38 | Vertical = 2
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/InvalidPrinterException.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.InvalidPrinterExecption.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 |
33 | using System.Runtime.Serialization;
34 |
35 | namespace System.DrawingCore.Printing {
36 |
37 | [Serializable]
38 | public class InvalidPrinterException : SystemException {
39 |
40 | // private PrinterSettings settings;
41 |
42 | public InvalidPrinterException (PrinterSettings settings): base(InvalidPrinterException.GetMessage(settings))
43 | {
44 | // this.settings = settings;
45 | }
46 |
47 | protected InvalidPrinterException (SerializationInfo info, StreamingContext context)
48 | : base (info, context)
49 | {
50 | }
51 |
52 | public override void GetObjectData (SerializationInfo info, StreamingContext context)
53 | {
54 | if (info == null)
55 | throw new ArgumentNullException ("info");
56 |
57 | base.GetObjectData (info, context);
58 | }
59 |
60 | private static string GetMessage(PrinterSettings settings)
61 | {
62 | if (settings.PrinterName == null || settings.PrinterName == String.Empty)
63 | return "No Printers Installed";
64 | return String.Format("Tried to access printer '{0}' with invalid settings.", settings.PrinterName);
65 | }
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PaperSourceKind.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PaperSourceKind.cs
3 | //
4 | // (C) 2002 Ximian, Inc. http://www.ximian.com
5 | // Author: Dennis Hayes (dennish@raytek.com)
6 | //
7 |
8 | //
9 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 | using System;
31 | namespace System.DrawingCore.Printing
32 | {
33 | [Serializable]
34 | public enum PaperSourceKind {
35 | AutomaticFeed = 7,
36 | Cassette = 14,
37 | Custom = 257,
38 | Envelope = 5,
39 | FormSource = 15,
40 | LargeCapacity = 11,
41 | LargeFormat = 10,
42 | Lower = 2,
43 | Manual = 4,
44 | ManualFeed = 6,
45 | Middle = 3,
46 | SmallFormat = 9,
47 | TractorFeed = 8,
48 | Upper = 1
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PreviewPageInfo.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PreviewPageInfo.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 | using System;
33 |
34 | namespace System.DrawingCore.Printing
35 | {
36 | ///
37 | /// Summary description for PreviewPageInfo.
38 | ///
39 | public sealed class PreviewPageInfo {
40 | Image image;
41 | Size physicalSize;
42 | public PreviewPageInfo(Image image, Size physicalSize) {
43 | this.image = image;
44 | this.physicalSize = physicalSize;
45 | }
46 | public Image Image {
47 | get{
48 | return image;
49 | }
50 | }
51 | public Size PhysicalSize{
52 | get{
53 | return physicalSize;
54 | }
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrintAction.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining
5 | // a copy of this software and associated documentation files (the
6 | // "Software"), to deal in the Software without restriction, including
7 | // without limitation the rights to use, copy, modify, merge, publish,
8 | // distribute, sublicense, and/or sell copies of the Software, and to
9 | // permit persons to whom the Software is furnished to do so, subject to
10 | // the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be
13 | // included in all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | //
23 | // Authors:
24 | //
25 | // Jordi Mas i Hernandez
26 | //
27 | //
28 |
29 |
30 | using System;
31 |
32 | namespace System.DrawingCore.Printing
33 | {
34 | public enum PrintAction
35 | {
36 | PrintToFile = 0,
37 | PrintToPreview = 1,
38 | PrintToPrinter = 2
39 | }
40 |
41 | }
42 |
43 |
44 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrintController.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrintController.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | // Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
9 | //
10 | // Permission is hereby granted, free of charge, to any person obtaining
11 | // a copy of this software and associated documentation files (the
12 | // "Software"), to deal in the Software without restriction, including
13 | // without limitation the rights to use, copy, modify, merge, publish,
14 | // distribute, sublicense, and/or sell copies of the Software, and to
15 | // permit persons to whom the Software is furnished to do so, subject to
16 | // the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be
19 | // included in all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 | //
29 |
30 | namespace System.DrawingCore.Printing {
31 |
32 | public abstract class PrintController {
33 |
34 | public virtual bool IsPreview {
35 | get { return false; }
36 | }
37 | public virtual void OnEndPage (PrintDocument document, PrintPageEventArgs e)
38 | {
39 | }
40 |
41 | public virtual void OnStartPrint (PrintDocument document, PrintEventArgs e)
42 | {
43 | }
44 |
45 | public virtual void OnEndPrint (PrintDocument document, PrintEventArgs e)
46 | {
47 | }
48 |
49 | public virtual Graphics OnStartPage (PrintDocument document, PrintPageEventArgs e)
50 | {
51 | return null;
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrintEventArgs.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrintEventArgs.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 | using System;
33 | //NOTE: Complete! Aparently just a redifiniton of CancleEventArgs specific to Printing.
34 | namespace System.DrawingCore.Printing
35 | {
36 | ///
37 | /// Summary description for PrintEventArgs.
38 | ///
39 | public class PrintEventArgs : System.ComponentModel.CancelEventArgs
40 | {
41 | private GraphicsPrinter graphics_context;
42 | private PrintAction action;
43 |
44 | public PrintEventArgs()
45 | {
46 | }
47 |
48 | internal PrintEventArgs (PrintAction action)
49 | {
50 | this.action = action;
51 | }
52 |
53 | public PrintAction PrintAction {
54 | get { return action; }
55 | }
56 |
57 | internal GraphicsPrinter GraphicsContext {
58 | get { return graphics_context; }
59 | set { graphics_context = value; }
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrintEventHandler.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrintEventHandler.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 | using System;
33 |
34 | namespace System.DrawingCore.Printing
35 | {
36 | ///
37 | /// Summary description for PrintEventHandler.
38 | ///
39 | public delegate void PrintEventHandler(object sender, PrintEventArgs e);
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrintPageEventHandler.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrintPageEventHandler.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 | using System;
33 |
34 | namespace System.DrawingCore.Printing
35 | {
36 | ///
37 | /// Summary description for PrintPageEventHandler.
38 | ///
39 | public delegate void PrintPageEventHandler(object sender, PrintPageEventArgs e);
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrintRange.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrintRange.cs
3 | //
4 | // (C) 2002 Ximian, Inc. http://www.ximian.com
5 | // Author: Dennis Hayes (dennish@raytek.com)
6 | //
7 |
8 | //
9 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 | using System;
31 | namespace System.DrawingCore.Printing
32 | {
33 | [Serializable]
34 | public enum PrintRange {
35 | AllPages = 0,
36 | Selection = 1,
37 | SomePages = 2,
38 | CurrentPage = 0x400000
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrinterResolution.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Printing.PrinterResolution.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 | //
8 | // (C) 2002 Ximian, Inc
9 | // (C) 2003 Andreas Nahr
10 | //
11 |
12 | //
13 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 | using System;
35 |
36 | namespace System.DrawingCore.Printing
37 | {
38 |
39 | [Serializable]
40 | public class PrinterResolution
41 | {
42 | private PrinterResolutionKind kind = PrinterResolutionKind.Custom;
43 | private int x;
44 | private int y;
45 |
46 | public PrinterResolution ()
47 | {
48 | }
49 |
50 | internal PrinterResolution (int x, int y, PrinterResolutionKind kind)
51 | {
52 | this.x = x;
53 | this.y = y;
54 | this.kind = kind;
55 | }
56 |
57 | public int X {
58 | get {
59 | return x;
60 | }
61 | set {
62 | x = value;
63 | }
64 | }
65 |
66 | public int Y {
67 | get {
68 | return y;
69 | }
70 | set {
71 | y = value;
72 | }
73 | }
74 |
75 | public PrinterResolutionKind Kind {
76 | get {
77 | return kind;
78 | }
79 | set {
80 | kind = value;
81 | }
82 | }
83 |
84 | public override string ToString ()
85 | {
86 | if (kind != PrinterResolutionKind.Custom)
87 | return "[PrinterResolution " + kind.ToString () + "]";
88 |
89 | return "[PrinterResolution X=" + x + " Y=" + y + "]";
90 | }
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrinterResolutionKind.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrinterResolutionKind.cs
3 | //
4 | // (C) 2002 Ximian, Inc. http://www.ximian.com
5 | // Author: Dennis Hayes (dennish@raytek.com)
6 | //
7 |
8 | //
9 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 | using System;
31 | namespace System.DrawingCore.Printing
32 | {
33 | [Serializable]
34 | public enum PrinterResolutionKind {
35 | Custom = 0,
36 | Draft = -1,
37 | High = -4,
38 | Low = -2,
39 | Medium = -3
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrinterUnit.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrinterUnit.cs
3 | //
4 | // (C) 2002 Ximian, Inc. http://www.ximian.com
5 | // Author: Dennis Hayes (dennish@raytek.com)
6 | //
7 |
8 | //
9 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 | using System;
31 | namespace System.DrawingCore.Printing
32 | {
33 | public enum PrinterUnit {
34 | Display = 0,
35 | HundredthsOfAMillimeter = 2,
36 | TenthsOfAMillimeter = 3,
37 | ThousandthsOfAnInch = 1
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/PrintingPermissionLevel.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.PrintingPermissionLevel.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc. http://www.ximian.com
8 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
9 | //
10 | // Permission is hereby granted, free of charge, to any person obtaining
11 | // a copy of this software and associated documentation files (the
12 | // "Software"), to deal in the Software without restriction, including
13 | // without limitation the rights to use, copy, modify, merge, publish,
14 | // distribute, sublicense, and/or sell copies of the Software, and to
15 | // permit persons to whom the Software is furnished to do so, subject to
16 | // the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be
19 | // included in all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 | //
29 |
30 | namespace System.DrawingCore.Printing {
31 |
32 | [Serializable]
33 | public enum PrintingPermissionLevel {
34 | AllPrinting = 3,
35 | DefaultPrinting = 2,
36 | NoPrinting = 0,
37 | SafePrinting = 1
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/QueryPageSettingsEventArgs.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.QueryPageSettingsEventArgs.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 | using System;
33 |
34 | namespace System.DrawingCore.Printing
35 | {
36 | ///
37 | /// Summary description for QueryPageSettingEventArgs.
38 | ///
39 | public class QueryPageSettingsEventArgs : PrintEventArgs
40 | {
41 | private PageSettings pageSettings;
42 |
43 | public QueryPageSettingsEventArgs(PageSettings pageSettings)
44 | {
45 | this.pageSettings = pageSettings;
46 | }
47 | public PageSettings PageSettings {
48 | get{
49 | return pageSettings;
50 | }
51 | set{
52 | pageSettings = value;
53 | }
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/QueryPageSettingsEventHandler.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.QueryPageSettingsEventHandler.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | //
7 | // (C) 2002 Ximian, Inc
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 | using System;
33 |
34 | namespace System.DrawingCore.Printing
35 | {
36 | ///
37 | /// Summary description for QueryPageSettingsEventHandler.
38 | ///
39 | public delegate void QueryPageSettingsEventHandler(object sender, QueryPageSettingsEventArgs e);
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Printing/StandardPrintController.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.StandardPrintController.cs
3 | //
4 | // Author:
5 | // Dennis Hayes (dennish@Raytek.com)
6 | // Herve Poussineau (hpoussineau@fr.st)
7 | // Jordi Mas i Hernandez (jordimash@gmail.com)
8 | //
9 | // (C) 2002 Ximian, Inc
10 | //
11 |
12 | //
13 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
14 | //
15 | // Permission is hereby granted, free of charge, to any person obtaining
16 | // a copy of this software and associated documentation files (the
17 | // "Software"), to deal in the Software without restriction, including
18 | // without limitation the rights to use, copy, modify, merge, publish,
19 | // distribute, sublicense, and/or sell copies of the Software, and to
20 | // permit persons to whom the Software is furnished to do so, subject to
21 | // the following conditions:
22 | //
23 | // The above copyright notice and this permission notice shall be
24 | // included in all copies or substantial portions of the Software.
25 | //
26 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 | //
34 |
35 | using System;
36 |
37 | namespace System.DrawingCore.Printing
38 | {
39 | public class StandardPrintController : PrintController
40 | {
41 | public StandardPrintController()
42 | {
43 | }
44 |
45 | public override void OnEndPage (PrintDocument document, PrintPageEventArgs e)
46 | {
47 | SysPrn.GlobalService.EndPage (e.GraphicsContext);
48 | }
49 |
50 | public override void OnStartPrint (PrintDocument document, PrintEventArgs e)
51 | {
52 | IntPtr dc = SysPrn.GlobalService.CreateGraphicsContext (document.PrinterSettings, document.DefaultPageSettings);
53 | e.GraphicsContext = new GraphicsPrinter (null, dc);
54 | SysPrn.GlobalService.StartDoc (e.GraphicsContext, document.DocumentName, string.Empty);
55 | }
56 |
57 | public override void OnEndPrint (PrintDocument document, PrintEventArgs e)
58 | {
59 | SysPrn.GlobalService.EndDoc (e.GraphicsContext);
60 | }
61 |
62 | public override Graphics OnStartPage (PrintDocument document, PrintPageEventArgs e)
63 | {
64 | SysPrn.GlobalService.StartPage (e.GraphicsContext);
65 | return e.Graphics;
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Text/GenericFontFamilies.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.GenericFontFamilies.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Text {
30 |
31 | public enum GenericFontFamilies {
32 | Monospace = 2,
33 | SansSerif = 1,
34 | Serif = 0
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Text/HotkeyPrefix.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.HotkeyPrefix.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Text {
30 |
31 | public enum HotkeyPrefix {
32 | Hide = 2,
33 | None = 0,
34 | Show = 1
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Text/InstalledFontCollection.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Text.InstalledFontCollection.cs
3 | //
4 | // (C) 2002 Ximian, Inc. http://www.ximian.com
5 | // Author: Everaldo Canuto everaldo.canuto@bol.com.br
6 | // Alexandre Pigolkine ( pigolkine@gmx.de)
7 | // Sanjay Gupta (gsanjay@novell.com)
8 | //
9 | // Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore.Text {
32 |
33 | public sealed class InstalledFontCollection : FontCollection {
34 |
35 | public InstalledFontCollection ()
36 | {
37 | Status status = GDIPlus.GdipNewInstalledFontCollection (out nativeFontCollection);
38 | GDIPlus.CheckStatus (status);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing.Text/TextRenderingHint.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.TextRenderingHint.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2002 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore.Text {
30 |
31 | public enum TextRenderingHint {
32 | AntiAlias = 4,
33 | AntiAliasGridFit = 3,
34 | ClearTypeGridFit = 5,
35 | SingleBitPerPixel = 2,
36 | SingleBitPerPixelGridFit = 1,
37 | SystemDefault = 0
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/BitmapSuffixInSameAssemblyAttribute.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.BitmapSuffixInSameAssemblyAttribute.cs
3 | //
4 | // Authors:
5 | // Andrés G. Aragoneses (knocte@gmail.com)
6 | //
7 | // Copyright (C) 2016 Andrés G. Aragoneses
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | using System;
30 | using System.ComponentModel;
31 |
32 | namespace System.DrawingCore
33 | {
34 | [AttributeUsage (AttributeTargets.Assembly)]
35 | public class BitmapSuffixInSameAssemblyAttribute : Attribute {
36 |
37 | public BitmapSuffixInSameAssemblyAttribute ()
38 | : base ()
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/BitmapSuffixInSatelliteAssemblyAttribute.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.BitmapSuffixInSatelliteAssemblyAttribute.cs
3 | //
4 | // Authors:
5 | // Andrés G. Aragoneses (knocte@gmail.com)
6 | //
7 | // Copyright (C) 2016 Andrés G. Aragoneses
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | using System;
30 | using System.ComponentModel;
31 |
32 | namespace System.DrawingCore
33 | {
34 | [AttributeUsage (AttributeTargets.Assembly)]
35 | public class BitmapSuffixInSatelliteAssemblyAttribute : Attribute {
36 |
37 | public BitmapSuffixInSatelliteAssemblyAttribute ()
38 | : base ()
39 | {
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/Brush.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.Brush.cs
3 | //
4 | // Authors:
5 | // Miguel de Icaza (miguel@ximian.com)
6 | // Ravindra (rkumar@novell.com)
7 | //
8 | // (C) Ximian, Inc. http://www.ximian.com
9 | // Copyright (C) 2004,2006-2007 Novell, Inc (http://www.novell.com)
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining
12 | // a copy of this software and associated documentation files (the
13 | // "Software"), to deal in the Software without restriction, including
14 | // without limitation the rights to use, copy, modify, merge, publish,
15 | // distribute, sublicense, and/or sell copies of the Software, and to
16 | // permit persons to whom the Software is furnished to do so, subject to
17 | // the following conditions:
18 | //
19 | // The above copyright notice and this permission notice shall be
20 | // included in all copies or substantial portions of the Software.
21 | //
22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 | //
30 |
31 | namespace System.DrawingCore {
32 |
33 | public abstract class Brush : MarshalByRefObject, ICloneable, IDisposable {
34 |
35 | internal IntPtr nativeObject;
36 |
37 | abstract public object Clone ();
38 |
39 | internal Brush (IntPtr ptr)
40 | {
41 | nativeObject = ptr;
42 | }
43 |
44 | internal IntPtr NativeObject {
45 | get {
46 | return nativeObject;
47 | }
48 | set {
49 | nativeObject = value;
50 | }
51 | }
52 |
53 | protected Brush ()
54 | {
55 | }
56 |
57 | protected internal void SetNativeBrush (IntPtr brush)
58 | {
59 | nativeObject = brush;
60 | }
61 |
62 | public void Dispose ()
63 | {
64 | Dispose (true);
65 | System.GC.SuppressFinalize (this);
66 | }
67 |
68 | protected virtual void Dispose (bool disposing)
69 | {
70 | // NOTE: this has been known to fail in the past (cairo)
71 | // but it's the only way to reclaim brush related memory
72 | if (nativeObject != IntPtr.Zero) {
73 | Status status = GDIPlus.GdipDeleteBrush (nativeObject);
74 | nativeObject = IntPtr.Zero;
75 | GDIPlus.CheckStatus (status);
76 | }
77 | }
78 |
79 | ~Brush ()
80 | {
81 | Dispose (false);
82 | }
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/BufferedGraphicsContext.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining
5 | // a copy of this software and associated documentation files (the
6 | // "Software"), to deal in the Software without restriction, including
7 | // without limitation the rights to use, copy, modify, merge, publish,
8 | // distribute, sublicense, and/or sell copies of the Software, and to
9 | // permit persons to whom the Software is furnished to do so, subject to
10 | // the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be
13 | // included in all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | //
23 | // Authors:
24 | //
25 | // Jordi Mas i Hernandez
26 | //
27 | //
28 |
29 |
30 | using System.ComponentModel;
31 | using System.Runtime.InteropServices;
32 | using System.Runtime.Serialization;
33 |
34 | namespace System.DrawingCore
35 | {
36 | public sealed class BufferedGraphicsContext : IDisposable
37 | {
38 | private Size max_buffer;
39 |
40 | public BufferedGraphicsContext ()
41 | {
42 | max_buffer = Size.Empty;
43 | }
44 |
45 | ~BufferedGraphicsContext ()
46 | {
47 | }
48 |
49 | public BufferedGraphics Allocate (Graphics targetGraphics, Rectangle targetRectangle)
50 | {
51 | BufferedGraphics graphics = new BufferedGraphics (targetGraphics, targetRectangle);
52 | return graphics;
53 | }
54 |
55 | public BufferedGraphics Allocate (IntPtr targetDC, Rectangle targetRectangle)
56 | {
57 | throw new NotImplementedException ();
58 | }
59 |
60 | public void Dispose ()
61 | {
62 | System.GC.SuppressFinalize (this);
63 | }
64 |
65 | public void Invalidate ()
66 | {
67 | }
68 |
69 | public Size MaximumBuffer {
70 | get {return max_buffer; }
71 | set {
72 | if (value.Width <= 0 || value.Height <= 0) {
73 | throw new ArgumentException ("The height or width of the size is less than or equal to zero.");
74 | }
75 |
76 | max_buffer = value;
77 | }
78 | }
79 |
80 | }
81 | }
82 |
83 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/BufferedGraphicsManager.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining
5 | // a copy of this software and associated documentation files (the
6 | // "Software"), to deal in the Software without restriction, including
7 | // without limitation the rights to use, copy, modify, merge, publish,
8 | // distribute, sublicense, and/or sell copies of the Software, and to
9 | // permit persons to whom the Software is furnished to do so, subject to
10 | // the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be
13 | // included in all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | //
23 | // Authors:
24 | //
25 | // Jordi Mas i Hernadez
26 | //
27 | //
28 |
29 |
30 | namespace System.DrawingCore
31 | {
32 | public sealed class BufferedGraphicsManager
33 | {
34 | private static BufferedGraphicsContext graphics_context;
35 |
36 | static BufferedGraphicsManager ()
37 | {
38 | graphics_context = new BufferedGraphicsContext ();
39 | }
40 |
41 | private BufferedGraphicsManager ()
42 | {
43 | }
44 |
45 | public static BufferedGraphicsContext Current {
46 | get { return graphics_context; }
47 | }
48 | }
49 | }
50 |
51 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/ContentAlignment.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.ContentAlignment.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | using System.ComponentModel;
30 |
31 | namespace System.DrawingCore {
32 |
33 | [Editor ("System.DrawingCore.Design.ContentAlignmentEditor, System.DrawingCore.Design", typeof (System.DrawingCore.Design.UITypeEditor))]
34 | public enum ContentAlignment {
35 | TopLeft = 0x001,
36 | TopCenter = 0x002,
37 | TopRight = 0x004,
38 | MiddleLeft = 0x010,
39 | MiddleCenter = 0x020,
40 | MiddleRight = 0x040,
41 | BottomLeft = 0x100,
42 | BottomCenter = 0x200,
43 | BottomRight = 0x400
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/CopyPixelOperation.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining
5 | // a copy of this software and associated documentation files (the
6 | // "Software"), to deal in the Software without restriction, including
7 | // without limitation the rights to use, copy, modify, merge, publish,
8 | // distribute, sublicense, and/or sell copies of the Software, and to
9 | // permit persons to whom the Software is furnished to do so, subject to
10 | // the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be
13 | // included in all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | //
23 | // Authors:
24 | //
25 | // Jordi Mas i Hernandez
26 | //
27 | //
28 |
29 |
30 | using System;
31 | using System.Runtime.InteropServices;
32 |
33 | namespace System.DrawingCore
34 | {
35 | [ComVisibleAttribute(true)]
36 | public enum CopyPixelOperation {
37 | Blackness = 0x00000042,
38 | CaptureBlt = 0x40000000,
39 | DestinationInvert = 0x00550009,
40 | MergeCopy = 0x00C000CA,
41 | MergePaint = 0x00BB0226,
42 | NoMirrorBitmap = -2147483648,
43 | NotSourceCopy = 0x00330008,
44 | NotSourceErase = 0x001100A6,
45 | PatCopy = 0x00F00021,
46 | PatInvert = 0x005A0049,
47 | PatPaint = 0x00FB0A09,
48 | SourceAnd = 0x008800C6,
49 | SourceCopy = 0x00CC0020,
50 | SourceErase = 0x00440328,
51 | SourceInvert = 0x00660046,
52 | SourcePaint = 0x00EE0086,
53 | Whiteness = 0x00FF0062,
54 | }
55 | }
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/FontStyle.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.FontStyle.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | [Flags]
32 | public enum FontStyle {
33 | Regular = 0,
34 | Bold = 1,
35 | Italic = 2,
36 | Underline = 4,
37 | Strikeout = 8
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/GraphicsUnit.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.GraphicsUnit.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | public enum GraphicsUnit {
32 | World = 0,
33 | Display = 1,
34 | Pixel = 2,
35 | Point = 3,
36 | Inch = 4,
37 | Document = 5,
38 | Millimeter = 6
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/IDeviceContext.cs:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining
5 | // a copy of this software and associated documentation files (the
6 | // "Software"), to deal in the Software without restriction, including
7 | // without limitation the rights to use, copy, modify, merge, publish,
8 | // distribute, sublicense, and/or sell copies of the Software, and to
9 | // permit persons to whom the Software is furnished to do so, subject to
10 | // the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be
13 | // included in all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 | //
23 | // Authors:
24 | //
25 | // Jordi Mas i Hernandez
26 | //
27 | //
28 |
29 |
30 | using System.ComponentModel;
31 |
32 | namespace System.DrawingCore
33 | {
34 | public interface IDeviceContext : IDisposable
35 | {
36 | IntPtr GetHdc ();
37 | void ReleaseHdc ();
38 | }
39 | }
40 |
41 |
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/RotateFlipType.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.RotateFlipType .cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | public enum RotateFlipType {
32 | RotateNoneFlipNone = 0,
33 | Rotate180FlipXY = 0,
34 | Rotate90FlipNone = 1,
35 | Rotate270FlipXY = 1,
36 | Rotate180FlipNone = 2,
37 | RotateNoneFlipXY = 2,
38 | Rotate270FlipNone = 3,
39 | Rotate90FlipXY = 3,
40 | RotateNoneFlipX = 4,
41 | Rotate180FlipY = 4,
42 | Rotate90FlipX = 5,
43 | Rotate270FlipY = 5,
44 | Rotate180FlipX = 6,
45 | RotateNoneFlipY = 6,
46 | Rotate270FlipX = 7,
47 | Rotate90FlipY = 7,
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/SRDescriptionAttribute.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.SRDescriptionAttribute.cs
3 | //
4 | // Authors:
5 | // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
6 | //
7 | // (C) 2004 Andreas Nahr
8 | //
9 |
10 | //
11 | // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining
14 | // a copy of this software and associated documentation files (the
15 | // "Software"), to deal in the Software without restriction, including
16 | // without limitation the rights to use, copy, modify, merge, publish,
17 | // distribute, sublicense, and/or sell copies of the Software, and to
18 | // permit persons to whom the Software is furnished to do so, subject to
19 | // the following conditions:
20 | //
21 | // The above copyright notice and this permission notice shall be
22 | // included in all copies or substantial portions of the Software.
23 | //
24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
29 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
30 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 | //
32 |
33 | using System;
34 | using System.ComponentModel;
35 |
36 | namespace System.DrawingCore
37 | {
38 | [AttributeUsage(AttributeTargets.All)]
39 | internal sealed class SRDescriptionAttribute : DescriptionAttribute {
40 |
41 | private bool isReplaced = false;
42 |
43 | public SRDescriptionAttribute (string description)
44 | : base (description)
45 | {
46 | }
47 |
48 | public override string Description {
49 | get {
50 | if (!isReplaced) {
51 | isReplaced = true;
52 | DescriptionValue = string.Format (DescriptionValue);
53 | }
54 | return DescriptionValue;
55 | }
56 | }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/StringAligment.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.StringAligment.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | public enum StringAlignment {
32 | Near = 0,
33 | Center = 1,
34 | Far = 2
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/StringDigitSubstitute.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.StringDigitSubstitute.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | public enum StringDigitSubstitute {
32 | User = 0,
33 | None = 1,
34 | National = 2,
35 | Traditional = 3
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/StringFormatFlags.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.StringFormatFlags.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | [Flags]
32 | public enum StringFormatFlags {
33 | DirectionRightToLeft = 0x0001,
34 | DirectionVertical = 0x0002,
35 | FitBlackBox = 0x0004,
36 | DisplayFormatControl = 0x0020,
37 | NoFontFallback = 0x0400,
38 | MeasureTrailingSpaces = 0x0800,
39 | NoWrap = 0x1000,
40 | LineLimit = 0x2000,
41 | NoClip = 0x4000
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/StringTrimming.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.StringTrimming.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | public enum StringTrimming {
32 | None = 0,
33 | Character = 1,
34 | Word = 2,
35 | EllipsisCharacter = 3,
36 | EllipsisWord = 4,
37 | EllipsisPath = 5
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/System.Drawing/StringUnit.cs:
--------------------------------------------------------------------------------
1 | //
2 | // System.DrawingCore.StringUnit.cs
3 | //
4 | // Author: Dennis Hayes (dennish@raytek.com)
5 | //
6 | // (C) 2001 Ximian, Inc. http://www.ximian.com
7 | // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
8 | //
9 | // Permission is hereby granted, free of charge, to any person obtaining
10 | // a copy of this software and associated documentation files (the
11 | // "Software"), to deal in the Software without restriction, including
12 | // without limitation the rights to use, copy, modify, merge, publish,
13 | // distribute, sublicense, and/or sell copies of the Software, and to
14 | // permit persons to whom the Software is furnished to do so, subject to
15 | // the following conditions:
16 | //
17 | // The above copyright notice and this permission notice shall be
18 | // included in all copies or substantial portions of the Software.
19 | //
20 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 | //
28 |
29 | namespace System.DrawingCore {
30 |
31 | public enum StringUnit{
32 | World = 0x00,
33 | Display = 0x01,
34 | Pixel = 0x02,
35 | Point = 0x03,
36 | Inch = 0x04,
37 | Document = 0x05,
38 | Millimeter = 0x06,
39 | Em = 0x20
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/ZKWeb.System.Drawing.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net45;netstandard2.0
5 | true
6 | ZKWeb.System.Drawing
7 | ZKWeb.System.Drawing
8 | false
9 | false
10 | false
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | $(DefineConstants);CORECLR;NETCORE
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | Component
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/src/ZKWeb.System.Drawing/ZKWeb.System.Drawing.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ZKWeb.System.Drawing
5 | 4.0.1
6 | ZKWeb.System.Drawing
7 | ZKWeb.System.Drawing
8 | true
9 | This is a .Net Core compatible System.Drawing implementation modified from mono project, works on windows and linux. Please see project site for more information.
10 | https://github.com/zkweb-framework/zkweb.system.drawing
11 | https://opensource.org/licenses/MIT
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------