Skip to content

Commit 2904136

Browse files
authored
Merge pull request #217 from alexey-leonovich/gh-pages
RMS-56998 - Удалена зависимость API V9 от System.Drawing.Common
2 parents 62c79d8 + 7d10e35 commit 2904136

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Удалена зависимость API V9 от System.Drawing.Common
3+
layout: default
4+
tags: v9preview5 v9
5+
---
6+
7+
Начиная с API V9Preview5 удалена зависимость от System.Drawing.Common, т. к. этот nuget [поддерживается только в Windows](https://learn.microsoft.com/ru-ru/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only).
8+
9+
Также из [IProduct](https://iiko.github.io/front.api.sdk/v9/html/Methods_T_Resto_Front_Api_Data_Assortment_IProduct.htm) удалён метод `TryGetProductMenuBitmap`, а из [IProductGroup](https://iiko.github.io/front.api.sdk/v9/html/Methods_T_Resto_Front_Api_Data_Assortment_IProductGroup.htm) - метод `TryGetProductGroupMenuBitmap`. Для получения изображения из его массива байт можно использовать код из [SamplePlugin](https://github.com/iiko/front.api.sdk/blob/master/sample/v8/Resto.Front.Api.SamplePlugin/WpfHelpers/ImageBytesToBitmapConverter.cs) или воспользоваться [любой удобной](https://learn.microsoft.com/ru-ru/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only#recommended-action) библиотекой для работы с графикой.

0 commit comments

Comments
 (0)