-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yevgen-nykytenko
committed
Mar 31, 2024
1 parent
db6ea67
commit ca24a3c
Showing
377 changed files
with
6,167 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: GroupDocs.Viewer.Drawing | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: The namespace provides types that replaces platformspecific graphics types like Color. | ||
type: docs | ||
weight: 30 | ||
url: /net/groupdocs.viewer.drawing/ | ||
--- | ||
The namespace provides types that replaces platform-specific graphics types like Color. | ||
|
||
## Classes | ||
|
||
| Class | Description | | ||
| --- | --- | | ||
| [Rgb24Color.KnownColors](./rgb24color.knowncolors) | Contains all "known colors", that have fixed unique name and value in CSS standart | | ||
## Structures | ||
|
||
| Structure | Description | | ||
| --- | --- | | ||
| [Argb32Color](./argb32color) | Represents 32-bit color in ARGB format, with 8 bits per every channel (Alpha, Red, Green, Blue). Supports transparency. | | ||
| [Image2DFormat](./image2dformat) | Represents most common 2D image formats, supports both raster and vector formats | | ||
| [Rgb24Color](./rgb24color) | Represents 24-bit color in RGB format, with 8 bits per every channel (Red, Green, Blue). Does not support transparency. | | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
73 changes: 73 additions & 0 deletions
73
english/net/groupdocs.viewer.drawing/argb32color/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
title: Argb32Color | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Represents 32bit color in ARGB format with 8 bits per every channel Alpha Red Green Blue. Supports transparency. | ||
type: docs | ||
weight: 810 | ||
url: /net/groupdocs.viewer.drawing/argb32color/ | ||
--- | ||
## Argb32Color structure | ||
|
||
Represents 32-bit color in ARGB format, with 8 bits per every channel (Alpha, Red, Green, Blue). Supports transparency. | ||
|
||
```csharp | ||
public struct Argb32Color : IEquatable<Argb32Color> | ||
``` | ||
|
||
## Properties | ||
|
||
| Name | Description | | ||
| --- | --- | | ||
| [A](../../groupdocs.viewer.drawing/argb32color/a) { get; } | Gets the alpha part of the color as 8-bit unsigned integer [0..255] | | ||
| [Alpha](../../groupdocs.viewer.drawing/argb32color/alpha) { get; } | Gets the alpha part of the color in percent in (0..1) range. | | ||
| [B](../../groupdocs.viewer.drawing/argb32color/b) { get; } | Gets the blue part of the color as 8-bit unsigned integer [0..255] | | ||
| [G](../../groupdocs.viewer.drawing/argb32color/g) { get; } | Gets the green part of the color as 8-bit unsigned integer [0..255] | | ||
| [IsDefault](../../groupdocs.viewer.drawing/argb32color/isdefault) { get; } | Indicates whether this [`Argb32Color`](../argb32color) instance is default (Transparent) - all 4 channels are set to 0. Same as [`IsEmpty`](./isempty) | | ||
| [IsEmpty](../../groupdocs.viewer.drawing/argb32color/isempty) { get; } | Indicates whether this [`Argb32Color`](../argb32color) color instance is uninitialized - all 4 channels are set to 0. Same as Default and Transparent. Same as [`IsDefault`](./isdefault) | | ||
| [IsFullyOpaque](../../groupdocs.viewer.drawing/argb32color/isfullyopaque) { get; } | Indicates whether this [`Argb32Color`](../argb32color) instance is fully opaque, without transparency (its Alpha channel has max value) | | ||
| [IsFullyTransparent](../../groupdocs.viewer.drawing/argb32color/isfullytransparent) { get; } | Indicates whether this [`Argb32Color`](../argb32color) instance is fully transparent - its Alpha channel has the min (0) value, so other R, G, and B channels has no visible effect. | | ||
| [IsTranslucent](../../groupdocs.viewer.drawing/argb32color/istranslucent) { get; } | Indicates whether this [`Argb32Color`](../argb32color) instance is translucent (not fully transparent, but also not fully opaque) | | ||
| [R](../../groupdocs.viewer.drawing/argb32color/r) { get; } | Gets the red part of the color as 8-bit unsigned integer [0..255] | | ||
| [Value](../../groupdocs.viewer.drawing/argb32color/value) { get; } | Gets the Int32 value of the color as 32-bit signed integer | | ||
|
||
## Methods | ||
|
||
| Name | Description | | ||
| --- | --- | | ||
| static [FromOtherWithAlpha](../../groupdocs.viewer.drawing/argb32color/fromotherwithalpha#fromotherwithalpha)(Argb32Color, byte) | Creates a new [`Argb32Color`](../argb32color) instance from specified, but with re-defined alpha (opacity) value | | ||
| static [FromOtherWithAlpha](../../groupdocs.viewer.drawing/argb32color/fromotherwithalpha#fromotherwithalpha_1)(Rgb24Color, byte) | Creates a new [`Argb32Color`](../argb32color) instance from specified [`Rgb24Color`](../rgb24color), but with specified alpha (opacity) value | | ||
| static [FromRgb](../../groupdocs.viewer.drawing/argb32color/fromrgb)(byte, byte, byte) | Creates one [`Argb32Color`](../argb32color) value from specified Red, Green, Blue channels, while Alpha channel is fully opaque | | ||
| static [FromRgba](../../groupdocs.viewer.drawing/argb32color/fromrgba)(byte, byte, byte, byte) | Creates one [`Argb32Color`](../argb32color) value from specified Red, Green, Blue, and Alpha channels | | ||
| static [FromSingleValueRgb](../../groupdocs.viewer.drawing/argb32color/fromsinglevaluergb)(byte) | Creates a fully opaque (A=255) color from single value, which will be applied to all channels | | ||
| [Equals](../../groupdocs.viewer.drawing/argb32color/equals#equals)(Argb32Color) | Checks two [`Argb32Color`](../argb32color) colors for equality | | ||
| override [Equals](../../groupdocs.viewer.drawing/argb32color/equals#equals_1)(object) | Tests if another object is equal to this [`Argb32Color`](../argb32color) instance. | | ||
| [GetBrightness](../../groupdocs.viewer.drawing/argb32color/getbrightness)() | Returns the Hue-Saturation-Lightness (HSL) lightness/brightness for this [`Argb32Color`](../argb32color) instance. | | ||
| override [GetHashCode](../../groupdocs.viewer.drawing/argb32color/gethashcode)() | Returns a hash code that defines the current color. Not compatible with GetHashCode | | ||
| [GetHue](../../groupdocs.viewer.drawing/argb32color/gethue)() | Returns the Hue-Saturation-Lightness (HSL) hue value, in degrees, for this [`Argb32Color`](../argb32color) instance. If R == G == B, the hue is meaningless, and the return value is 0. | | ||
| [GetSaturation](../../groupdocs.viewer.drawing/argb32color/getsaturation)() | The Hue-Saturation-Lightness (HSL) saturation for this [`Argb32Color`](../argb32color) instance | | ||
| [ToArgb](../../groupdocs.viewer.drawing/argb32color/toargb)() | Returns the ARGB value of this [`Argb32Color`](../argb32color) instance, compatible with Color | | ||
| [ToRGB](../../groupdocs.viewer.drawing/argb32color/torgb)() | Serializes this [`Argb32Color`](../argb32color) instance to the 'rgb' CSS function notation. Alpha channel of this color will be omitted during serialization. | | ||
| [ToRGBA](../../groupdocs.viewer.drawing/argb32color/torgba)() | Serializes this [`Argb32Color`](../argb32color) instance to the 'rgba' CSS function notation | | ||
| override [ToString](../../groupdocs.viewer.drawing/argb32color/tostring)() | Serializes this [`Argb32Color`](../argb32color) instance to the most appropriate CSS function notation depending on translucency | | ||
| [operator ==](../../groupdocs.viewer.drawing/argb32color/op_equality) | Compares two colors and returns a boolean indicating if the two do match. | | ||
| [explicit operator](../../groupdocs.viewer.drawing/argb32color/op_explicit) | Explicitly casts the 32-bit [`Argb32Color`](../argb32color) to 24-bit [`Rgb24Color`](../rgb24color). Alpha channel of the source [`Argb32Color`](../argb32color) will be lost after casting, because [`Rgb24Color`](../rgb24color) does not support transparency. | | ||
| [implicit operator](../../groupdocs.viewer.drawing/argb32color/op_implicit) | Implicitly casts the 24-bit [`Rgb24Color`](../rgb24color) to 32-bit [`Argb32Color`](../argb32color). Alpha channel of the output [`Argb32Color`](../argb32color) will be set to `255` - fully opaque. | | ||
| [operator !=](../../groupdocs.viewer.drawing/argb32color/op_inequality) | Compares two colors and returns a boolean indicating if the two do not match. | | ||
|
||
## Fields | ||
|
||
| Name | Description | | ||
| --- | --- | | ||
| static readonly [Empty](../../groupdocs.viewer.drawing/argb32color/empty) | Returns an empty color, which has no channels info and is fully transparent. Same as '[`Transparent`](./transparent)'. Default value. | | ||
| static readonly [Transparent](../../groupdocs.viewer.drawing/argb32color/transparent) | Fully transparent empty color. The same as default '[`Empty`](./empty)' color value. | | ||
|
||
### Remarks | ||
|
||
This type is designed to be useful for (but not limited to) CSS operations. See more: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value | ||
### See Also | ||
|
||
* namespace [GroupDocs.Viewer.Drawing](../../groupdocs.viewer.drawing) | ||
* assembly [GroupDocs.Viewer](../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
23 changes: 23 additions & 0 deletions
23
english/net/groupdocs.viewer.drawing/argb32color/a/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: A | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Gets the alpha part of the color as 8bit unsigned integer 0..255 | ||
type: docs | ||
weight: 70 | ||
url: /net/groupdocs.viewer.drawing/argb32color/a/ | ||
--- | ||
## Argb32Color.A property | ||
|
||
Gets the alpha part of the color as 8-bit unsigned integer [0..255] | ||
|
||
```csharp | ||
public byte A { get; } | ||
``` | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
23 changes: 23 additions & 0 deletions
23
english/net/groupdocs.viewer.drawing/argb32color/alpha/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: Alpha | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Gets the alpha part of the color in percent in 0..1 range. | ||
type: docs | ||
weight: 80 | ||
url: /net/groupdocs.viewer.drawing/argb32color/alpha/ | ||
--- | ||
## Argb32Color.Alpha property | ||
|
||
Gets the alpha part of the color in percent in (0..1) range. | ||
|
||
```csharp | ||
public double Alpha { get; } | ||
``` | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
23 changes: 23 additions & 0 deletions
23
english/net/groupdocs.viewer.drawing/argb32color/b/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: B | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Gets the blue part of the color as 8bit unsigned integer 0..255 | ||
type: docs | ||
weight: 90 | ||
url: /net/groupdocs.viewer.drawing/argb32color/b/ | ||
--- | ||
## Argb32Color.B property | ||
|
||
Gets the blue part of the color as 8-bit unsigned integer [0..255] | ||
|
||
```csharp | ||
public byte B { get; } | ||
``` | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
23 changes: 23 additions & 0 deletions
23
english/net/groupdocs.viewer.drawing/argb32color/empty/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: Empty | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Returns an empty color which has no channels info and is fully transparent. Same as Transparentgroupdocs.viewer.drawing/argb32color/transparent. Default value. | ||
type: docs | ||
weight: 10 | ||
url: /net/groupdocs.viewer.drawing/argb32color/empty/ | ||
--- | ||
## Argb32Color.Empty field | ||
|
||
Returns an empty color, which has no channels info and is fully transparent. Same as '[`Transparent`](../transparent)'. Default value. | ||
|
||
```csharp | ||
public static readonly Argb32Color Empty; | ||
``` | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
55 changes: 55 additions & 0 deletions
55
english/net/groupdocs.viewer.drawing/argb32color/equals/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: Equals | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Checks two Argb32Colorgroupdocs.viewer.drawing/argb32color colors for equality | ||
type: docs | ||
weight: 180 | ||
url: /net/groupdocs.viewer.drawing/argb32color/equals/ | ||
--- | ||
## Equals(Argb32Color) {#equals} | ||
|
||
Checks two [`Argb32Color`](../../argb32color) colors for equality | ||
|
||
```csharp | ||
public bool Equals(Argb32Color other) | ||
``` | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| other | Argb32Color | The other [`Argb32Color`](../../argb32color) color | | ||
|
||
### Return Value | ||
|
||
True if both colors or equal, otherwise false. | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
--- | ||
|
||
## Equals(object) {#equals_1} | ||
|
||
Tests if another object is equal to this [`Argb32Color`](../../argb32color) instance. | ||
|
||
```csharp | ||
public override bool Equals(object other) | ||
``` | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| other | Object | The object to test with. | | ||
|
||
### Return Value | ||
|
||
True if the two objects are equal, otherwise false. | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
58 changes: 58 additions & 0 deletions
58
english/net/groupdocs.viewer.drawing/argb32color/fromotherwithalpha/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: FromOtherWithAlpha | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Creates a new Argb32Colorgroupdocs.viewer.drawing/argb32color instance from specified but with redefined alpha opacity value | ||
type: docs | ||
weight: 30 | ||
url: /net/groupdocs.viewer.drawing/argb32color/fromotherwithalpha/ | ||
--- | ||
## FromOtherWithAlpha(Argb32Color, byte) {#fromotherwithalpha} | ||
|
||
Creates a new [`Argb32Color`](../../argb32color) instance from specified, but with re-defined alpha (opacity) value | ||
|
||
```csharp | ||
public static Argb32Color FromOtherWithAlpha(Argb32Color other, byte newAlpha) | ||
``` | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| other | Argb32Color | Other [`Argb32Color`](../../argb32color) instance, from which the new one will be created | | ||
| newAlpha | Byte | Re-defined alpha channel value (255 - fully opaque, 0 - fully transparent) | | ||
|
||
### Return Value | ||
|
||
New [`Argb32Color`](../../argb32color) instance | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
--- | ||
|
||
## FromOtherWithAlpha(Rgb24Color, byte) {#fromotherwithalpha_1} | ||
|
||
Creates a new [`Argb32Color`](../../argb32color) instance from specified [`Rgb24Color`](../../rgb24color), but with specified alpha (opacity) value | ||
|
||
```csharp | ||
public static Argb32Color FromOtherWithAlpha(Rgb24Color other, byte newAlpha) | ||
``` | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| other | Rgb24Color | Other [`Rgb24Color`](../../rgb24color) instance, from which the new one will be created | | ||
| newAlpha | Byte | Alpha channel value (255 - fully opaque, 0 - fully transparent) | | ||
|
||
### Return Value | ||
|
||
New [`Argb32Color`](../../argb32color) instance | ||
|
||
### See Also | ||
|
||
* struct [Rgb24Color](../../rgb24color) | ||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
33 changes: 33 additions & 0 deletions
33
english/net/groupdocs.viewer.drawing/argb32color/fromrgb/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: FromRgb | ||
second_title: GroupDocs.Viewer for .NET API Reference | ||
description: Creates one Argb32Colorgroupdocs.viewer.drawing/argb32color value from specified Red Green Blue channels while Alpha channel is fully opaque | ||
type: docs | ||
weight: 40 | ||
url: /net/groupdocs.viewer.drawing/argb32color/fromrgb/ | ||
--- | ||
## Argb32Color.FromRgb method | ||
|
||
Creates one [`Argb32Color`](../../argb32color) value from specified Red, Green, Blue channels, while Alpha channel is fully opaque | ||
|
||
```csharp | ||
public static Argb32Color FromRgb(byte red, byte green, byte blue) | ||
``` | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| red | Byte | Red channel value | | ||
| green | Byte | Green channel value | | ||
| blue | Byte | Blue channel value | | ||
|
||
### Return Value | ||
|
||
New [`Argb32Color`](../../argb32color) value | ||
|
||
### See Also | ||
|
||
* struct [Argb32Color](../../argb32color) | ||
* namespace [GroupDocs.Viewer.Drawing](../../argb32color) | ||
* assembly [GroupDocs.Viewer](../../../) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Viewer.dll --> |
Oops, something went wrong.