private void _setPaintType(bool hasUri, bool hasRgb, bool hasIcc, bool hasNone, bool hasCurrentColor)
{
if(hasUri)
{
if(hasRgb)
{
if(hasIcc)
{
_paintType = SvgPaintType.UriRgbColorIccColor;
}
else
{
_paintType = SvgPaintType.UriRgbColor;
}
}
else if(hasNone)
{
_paintType = SvgPaintType.UriNone;
}
else if(hasCurrentColor)
{
_paintType = SvgPaintType.UriCurrentColor;
}
else
{
_paintType = SvgPaintType.Uri;
}
}
else
{
if(hasRgb)
{
if(hasIcc)
{
_paintType = SvgPaintType.RgbColorIccColor;
}
else
{
_paintType = SvgPaintType.RgbColor;
}
}
else if(hasNone)
{
_paintType = SvgPaintType.None;
}
else if(hasCurrentColor)
{
_paintType = SvgPaintType.CurrentColor;
}
else
{
_paintType = SvgPaintType.Unknown;
}
}
}