AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.07.2008, 15:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axaptapedia: Image class
Источник: http://www.axaptapedia.com/Image_class
==============

Summary: [[Image class]] moved to [[Image Class]]: Capital "Class"

'''Image''' is a [[System Classes|system class]] for handling image data.

The class can construct and manipulate Image objects of the following file types:

* Raster (bitmap) formats - .bmp, .gif, .jpg, .png, .tiff, and .exif
* Vector formats - .emf and .wmf

Because of security reasons the class in Dynamics Ax can not be run from the server and is bound to the client.


The image object can be created from scratch, captured from the screen or loaded from a file. It can then be cropped, resized, flipped, rotated etc...



==Examples==

Load an image from file and place it in a table:


Image image;
str fileName;
;

filename = myImagePath + myImageFile;

if (Image::canLoad(Filename))
{
image.loadImage(Filename);
myTable.imageContainer = image.getData();
}



...and to display the image on a form:


Image Image;
container imageContainer;
;

imageContainer = myTable.imageContainer;

Image = new Image();
Image.setData(imageContainer);

imageWindow.image(Image);
imageWindow.widthValue(image.width());
imageWindow.heightValue(image.height());


[[Category:Class development]]
[[Category:AOT reference information]]
[[Category:System Class]]


Источник: http://www.axaptapedia.com/Image_class
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 04.04.2009 22:05
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 31.03.2009 06:06
axaptapedia: WinInet class Blog bot DAX Blogs 0 28.09.2007 20:54
axaptapedia: SaxReader class Blog bot DAX Blogs 0 11.09.2007 11:50
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 14:42.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.