Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Using a transparent PNG


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Nov 11, 2014 2:06 AM Last Post By: Stev Warby Threads: [ Previous | Next ]
Stev Warby

Posts: 50
Registered: 10/19/14
Using a transparent PNG  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 5, 2014 12:18 PM
I found a few threads stating I should use imageList but I don't see that component (XE7).

How can I display a transparent PNG without the background.

Cheers

SteveW
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Using a transparent PNG  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 5, 2014 12:34 PM   in response to: Stev Warby in response to: Stev Warby
Stev wrote:

I found a few threads stating I should use imageList but I don't
see that component (XE7).

TImageList is on the Component/Tool Palette in the "Win32" section.

How can I display a transparent PNG without the background.

For a single image, look at the TImage component in the "Additional" section
of the Palette.

--
Remy Lebeau (TeamB)
Stev Warby

Posts: 50
Registered: 10/19/14
Re: Using a transparent PNG  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 5, 2014 12:37 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
I need this on cross platform.

I have created a multi device application so don't see the WIN32 section.

Cheers

SteveW

Remy Lebeau (TeamB) wrote:
Stev wrote:

I found a few threads stating I should use imageList but I don't
see that component (XE7).

TImageList is on the Component/Tool Palette in the "Win32" section.

How can I display a transparent PNG without the background.

For a single image, look at the TImage component in the "Additional" section
of the Palette.

--
Remy Lebeau (TeamB)
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Using a transparent PNG  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 5, 2014 2:19 PM   in response to: Stev Warby in response to: Stev Warby
Stev wrote:

I need this on cross platform.

You have to use Firemonkey instead of VCL for cross-platform development.
FireMonkey has a TImage component, but it does not have a TImageList component.

Read the following articles for different ways to work with images in FireMonkey:

How to survive without image lists in a FireMonkey project
http://delphihaven.wordpress.com/2013/01/26/surviving-without-image-lists-in-fmx/

How to store images in FireMonkey?
http://stackoverflow.com/a/18431199/65863

Adding Images to a FireMonkey TreeView


--
Remy Lebeau (TeamB)
Stev Warby

Posts: 50
Registered: 10/19/14
Re: Using a transparent PNG  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 11, 2014 2:06 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
I appreciate the links but its 2014 and I can't simply use a PNG with a transparent background.

Coming from a creative background this is a basic requirement for any software package
Remy Lebeau (TeamB) wrote:
Stev wrote:

I need this on cross platform.

You have to use Firemonkey instead of VCL for cross-platform development.
FireMonkey has a TImage component, but it does not have a TImageList component.

Read the following articles for different ways to work with images in FireMonkey:

How to survive without image lists in a FireMonkey project
http://delphihaven.wordpress.com/2013/01/26/surviving-without-image-lists-in-fmx/

How to store images in FireMonkey?
http://stackoverflow.com/a/18431199/65863

Adding Images to a FireMonkey TreeView


--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02