Aspose.Barcode for Python via Java Generation and Recognition API docs
SvgColorMode Class Reference

Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1. More...

Inherits Enum.

Static Public Attributes

int HSL = 2
 HSL mode, example: fill="hsl(17, 100%, 53%)" fill-opacity="0.73". More...
 
int HSLA = 3
 HSLA mode, example: fill="hsla(30, 50%, 70%, 0.8)". More...
 
int RGB = 0
 RGB mode, example: fill="#ff5511" fill-opacity="0.73". More...
 
int RGBA = 1
 RGBA mode, example: fill="rgba(255, 85, 17, 0.73)". More...
 

Detailed Description

Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1.

RGBA, HSL, HSLA is allowed in SVG 2.0 standard. Even in RGB opacity will be set through "fill-opacity" parameter

Member Data Documentation

◆ HSL

int HSL = 2
static

HSL mode, example: fill="hsl(17, 100%, 53%)" fill-opacity="0.73".

◆ HSLA

int HSLA = 3
static

HSLA mode, example: fill="hsla(30, 50%, 70%, 0.8)".

◆ RGB

int RGB = 0
static

RGB mode, example: fill="#ff5511" fill-opacity="0.73".

Default mode.

◆ RGBA

int RGBA = 1
static

RGBA mode, example: fill="rgba(255, 85, 17, 0.73)".