Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change picture color
Message
De
17/07/2004 04:33:51
 
 
À
16/07/2004 13:53:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00925117
Message ID:
00925460
Vues:
17
Oh... on C# it take for me 5 min coding... :((
Bitmap bitmap;
bitmap = new Bitmap(this.button1.Image);
Color loColor;			
int lni,lnj;

bitmap.MakeTransparent(Color.FromArgb(255,255,255));
for (lni=1;lni<bitmap.Width;lni++)
  {
	for (lnj=1;lnj<bitmap.Height;lnj++)
	{
		loColor = bitmap.GetPixel(lni,lnj);
            if (loColor == Color.FromArgb(0,0,0))
            {
               bitmap.SetPixel(lni,lnj,Color.FromArgb(255,0,0));
             }
      }
}
	this.button1.Image = bitmap;
I want SAME on FoxPro :(

Denis


>Oh, yes, the way to process image on fly using API always is. But I don't know how to simplify it using VFP. Maybe there's no way.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform