Применение теневого цвета с помощью тега feColorMatrix выглядит скучно во всех браузерах. Почему?

Вот код, который я использую, чтобы извлечь имя базы данных & amp; имя сервера из строки подключения.

Обратите внимание, как он проверяет, является ли это соединительной строкой Entity Framework, и если это так, он извлекает часть «строки подключения поставщика», которая затем может быть передана в SqlConnectionStringBuilder:

Если я не сделал это, я получил бы эту неприятную ошибку «Keyword Not Supported: Metadata».

if (connectionString.ToLower().StartsWith("metadata="))
{
    System.Data.Entity.Core.EntityClient.EntityConnectionStringBuilder efBuilder = new System.Data.Entity.Core.EntityClient.EntityConnectionStringBuilder(connectionString);
    connectionString = efBuilder.ProviderConnectionString;
}

SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(connectionString);
DatabaseServer = builder.DataSource;             //  eg "MikesServer"
DatabaseName = builder.InitialCatalog;           //  eg "Northwind"
0
задан TMJ 16 January 2019 в 07:30
поделиться

2 ответа

Используйте color-interpolation: "sRGB" в качестве свойства или стиля CSS для тега filter / feColorMatrix. Что такое цветовая интерполяция? Как это работает?

I spend more time to find the reason behind this issue because When I googled it, I didn't see any clear explanation and felt nobody faced kind of issue. After the so much of hard work, I figured it out the solution so I came here to raise the question and share the answer here. Hope Someone will get help from this.

0
ответ дан TMJ 16 January 2019 в 07:30
поделиться

Ваша математика немного не в порядке. вам нужно указать sRGB. Цветовая матрица должна быть:

<feColorMatrix result="output_0" color-interpolation-filters="sRGB" type="matrix"values="0 0 0 0 0.243 0 0 0 0 0.302 0 0 0 0 0.7215 0 0 0 1 0"/>
0
ответ дан Michael Mullany 16 January 2019 в 07:30
поделиться
Другие вопросы по тегам:

Похожие вопросы: