BarbezDotEu.Drawing
2.0.1
Prefix Reserved
dotnet add package BarbezDotEu.Drawing --version 2.0.1
NuGet\Install-Package BarbezDotEu.Drawing -Version 2.0.1
<PackageReference Include="BarbezDotEu.Drawing" Version="2.0.1" />
<PackageVersion Include="BarbezDotEu.Drawing" Version="2.0.1" />
<PackageReference Include="BarbezDotEu.Drawing" />
paket add BarbezDotEu.Drawing --version 2.0.1
#r "nuget: BarbezDotEu.Drawing, 2.0.1"
#:package BarbezDotEu.Drawing@2.0.1
#addin nuget:?package=BarbezDotEu.Drawing&version=2.0.1
#tool nuget:?package=BarbezDotEu.Drawing&version=2.0.1
BarbezDotEu.Drawing
This project is a .NET library targeting .NET Standard 2.0.
It provides drawing and imaging utilities, and depends on the System.Drawing.Common
package for cross-platform graphics support.
Target Framework
- .NET Standard 2.0
Dependencies
Classes and Interfaces
RECT
The RECT
struct represents a rectangle by defining the coordinates of its edges.
- Left, Top, Right, Bottom: The coordinates of the rectangle's edges.
IViewObject
The IViewObject
interface is a COM interface for drawing objects. It is typically used for advanced scenarios involving COM interop and custom rendering.
- Draw: Renders the visual representation of the object to a device context.
ImageHelper
The ImageHelper
static class provides helper methods for image creation, conversion, and watermarking.
Methods
Image CreateImage(string filePath)
Loads an image from the specified file path.byte[] ImageToByte(Image img, ImageFormat format)
Converts an image to a byte array in the specified format.byte[] ConvertToImageFormat(string imagePath, ImageFormat format)
Loads an image from the specified file path and converts it to a byte array in the given image format.void GetImage(object obj, Image destination, Color backgroundColor)
Renders an object's visual representation (must implementIViewObject
) to an image with the provided background color.byte[] Watermark(Image image, string watermarkFilePath, ImageFormat format)
Applies a watermark from the specified file path to the given image and converts the result to a byte array.byte[] Watermark(string imageFilePath, string watermarkFilePath, ImageFormat format)
Loads an image and a watermark from the given file paths, applies the watermark, and converts the result to a byte array.byte[] Watermark(Image image, ImageFormat format, Image watermark)
Applies the provided watermark image to the given image and converts the result to a byte array.
License
Third Party Notices
This repository and package incorporates components from the Open Source Software below. The original copyright notices and the licenses under which the author of this repository and package received such components are set forth below for informational purposes.
The article at https://www.codeproject.com/Articles/793687/Configuring-the-emulation-mode-of-an-Internet-Expl, along with any associated source code and files, used by this repository and package, is licensed under The MIT License.
Terms of the MIT License for third-party:
Copyright 2014 Richard James Moss
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Drawing.Common (>= 9.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.