Jump to content

Native Imagelist


Harry Rogers

Recommended Posts

Hi

 

I can't figure out how to use a UniNativeImageList  as the picture source for a UniImage.

I've tried all the obvious ( to me at least ) assignments without luck  even resorting to this horror ! >>  

 

uniimage2.LoadFromStream(Tstream(uninativeimagelist1.Images[0].MemoryImage));

 

I'm sure it must be simple to do.

 

Anyone care to enlighten me ?

 

Many thanks

 

Link to comment
Share on other sites

Hi

 

I can't figure out how to use a UniNativeImageList  as the picture source for a UniImage.

I've tried all the obvious ( to me at least ) assignments without luck  even resorting to this horror ! >>  

 

uniimage2.LoadFromStream(Tstream(uninativeimagelist1.Images[0].MemoryImage));

 

I'm sure it must be simple to do.

 

Anyone care to enlighten me ?

 

Many thanks

 

Hi,

 

You can try as follow

UniNativeImageList.GetBitmap(0, UniImage2.Picture.Bitmap);

 

Best Regards,

Link to comment
Share on other sites

I've tried just about every combination I can think of up and down the object hierarchy but can't find a solution.

I think I will pre-load the PNGs into a directory and simply use a loadfromfile in each case.

 

would it be possible to add a property/method to the UniNativeImageList that returned a Tpicture or have a UnImage descendant that had imagelist & image index properties ?

 

Many thanks

 

Harry

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...