Recent

Author Topic: Make a transparent PNG from several images  (Read 1805 times)

querecuto

  • Newbie
  • Posts: 3
Make a transparent PNG from several images
« on: May 03, 2021, 03:50:11 am »
I am trying to create an image generator and I don't know how to "merge" the images into one and save it in a transparent png.

Could someone please guide me?

I need to get the images of 4 "TImage" called: Card, Texture, Ribbon, Picture.
In addition to the 2 texts (TLabel)


I tried creating a "canvas" but I did not know how or I think it is to draw geometric figures.

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: Make a transparent PNG from several images
« Reply #1 on: May 03, 2021, 06:35:42 pm »
It depends if you have half-transparent pixels or if pixels are either opaque or transparent.

If you don't have half-transparent pixels, then you can use a background color like clFuschia and define it as the transparent color.
Conscience is the debugger of the mind

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Make a transparent PNG from several images
« Reply #2 on: May 03, 2021, 07:36:36 pm »
This topic is the intl. version of this one in the Spanish sub-board. A couple of answers there already ;)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018