In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TBtnBmp - Remove Image Background

Xailer English public forum
Responder
Avatar de Usuario
Hurricane
Mensajes: 262
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

TBtnBmp - Remove Image Background

Mensaje por Hurricane »

Hi,

Please, how do I remove this background?

I am trying to convert a part of the F* forms to Xailer.

It's the same BMP file:
btn.png
btn.png (1.88 KiB) Visto 954 veces
regards,
Developments | Trainings | Projects
Site | E-mail | Messenger | YouTube
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: TBtnBmp - Remove Image Background

Mensaje por jfgimenez »

Hi,

add that bitmap as a resource in the project. If you need to load it directly from disc, then you may save it as a png
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
Hurricane
Mensajes: 262
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

Re: TBtnBmp - Remove Image Background

Mensaje por Hurricane »

HI,

thanks for your help.

I need to read from file, I changed it to png and the background is not removed.

a summary of the tests (transparency):
  • read bmp from file: no
  • read bmp from resource: yes
  • read png from file: no
  • read png from resource: no
regards
Developments | Trainings | Projects
Site | E-mail | Messenger | YouTube
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: TBtnBmp - Remove Image Background

Mensaje por jfgimenez »

Hi,

here you're a working sample
teste.zip
(3.03 KiB) Descargado 75 veces
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
Hurricane
Mensajes: 262
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

Re: TBtnBmp - Remove Image Background

Mensaje por Hurricane »

Hi

this is different, you edited the image :D
jfgimenez escribió: Vie Mar 03, 2023 5:49 pm here you're a working sample
Responder