Сохранить TImageList в файл со всеми картинкамиDelphi , Компоненты и Классы , TImage и TImageListСохранить TImageList в файл со всеми картинками
Оформил: DeeCo // There are ready-made methods for saving any component including all its children to a file. // For writing components use WriteComponentResFile(path + source filename , component name source) WriteComponentResFile('C:\imagelist1.bin',imagelist1); // For reading the data back to a component: // component := ReadComponentResFile(path + source filename , component name traget) imagelist1 := ReadComponentResFile('c:\imagelist1.bin', nil) as TImagelist; // Tip 1 - Reading the component will give the same name of the component written so don't try to // load it to another component, even if it was the same type. You will get a duplicate name and // delphi will crash. But you can jump over this as a programmer // Tip 2 - Get benfit of storing the heavy components inside compressed files, // so you can get smaller programs Статья Сохранить TImageList в файл со всеми картинками раздела Компоненты и Классы TImage и TImageList может быть полезна для разработчиков на Delphi и FreePascal. Комментарии и вопросыМатериалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта. :: Главная :: TImage и TImageList ::
|
||||
©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007 |