Superposer 2 images avec gestion de transparence ... - VB/VBA/VBS - Programmation
Marsh Posté le 07-07-2006 à 10:49:08
| tomsoft a écrit : personne ?   | 
 
sous vb editor tu as dans les propriétés de l'image la transparence ou l'opacité de dispo il me semlbe...
Marsh Posté le 07-07-2006 à 10:55:18
ReplyMarsh Posté le 07-07-2006 à 11:21:30
| tomsoft a écrit : vb editor = la page design de ma form ?  | 
 
avec mes excuse, a marche pour les boutons seulement po pour les images :s
Marsh Posté le 21-08-2006 à 16:41:29
merci 
 
 
mais j'y arrive tjs pas ,j'ai trouvé ca : 
 
Title	Overlay one image on another with a transparent color by using PSet 
Description	This example shows how to overlay one image on another with a transparent color by using PSet in Visual Basic 6. 
Keywords	PSet, overlay, transparent 
Categories	Graphics 
  
This program simply loops through the pixels in the images. For each image in top-to-bottom order, the program looks for a color other than the one defined as transparent. When it finds such a color, it stops looking at the images and sets the output pixel's color using PSet. 
  
Code :
  | 
 
 
  
Note that there are faster ways to access color values in V 6 and VB .NET, and that there are faster methods for merging images if you have an overlay mask. Note also that VB .NET provides tools for setting a transparent color for an image so this problem is trivial in VB .NET. 
  
 
 
D'apres la derniere phrase on pourrai le faire sans code ... ??
Marsh Posté le 21-08-2006 à 17:03:09
Voir Aide en Ligne Bitmap.MakeTransparent Method (Color) 
ainsi que les exemples sur le site vb Helper 
 
howto_net_translucent_text 
howto_net_copy_transparent_image_shape 
howto_net_analog_clock_transparent 
howto_net_transparent_form 
howto_net_maketransparent 
howto_net_copy_transparent_image_shape
Marsh Posté le 06-07-2006 à 19:28:46
j'aurais voulut savoir s'il etait possible de superposer 2 images (.png ou autre) avec support de la couleur "transparente"
Je vous explique, il y a un fond ,et un personage qui se deplace dessus ,ca fait ca :
je ne veut pas du blanc autour de l'image ...
ya t'i lpossibilité de faire ca dans Vbexpress ?