Précédent   Forum du club des développeurs et IT Pro > Dotnet > Développement Windows > Windows Forms
Windows Forms Forum d'entraide sur le développement Windows Forms & Applications Windows. Avant de poster -> Articles Windows Forms
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 28/12/2012, 16h38   #1
yann458
Invité régulier
 
Inscription : mai 2011
Messages : 309
Détails du profil
Informations personnelles :
Localisation : France, Vienne (Poitou Charente)

Informations forums :
Inscription : mai 2011
Messages : 309
Points : 7
Points : 7
Par défaut Projet , afficher l'image en mosaic

Bonjour,

D'habitude je développe en C/C++,
je suis en train de developper un projet C# qui determine la solution de 2 points, ca marche impeccable.

Mais Je cherche à afficher dans un pictureBox grand , un bitmap 64x64.
L'image est biren resampler , mais je voudrais que ca affiche sous forme de mosaic (pixel carré)

Je vous joint l'aperçut de l'image resampler.

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
private void pictureBox1_Paint(object sender, PaintEventArgs e)
        {
            if (bitmap != null)
            {
                Bitmap bmp = new Bitmap(bitmap);
 
 
                bmp.SetPixel(computer.x, computer.y, Color.Red);
                bmp.SetPixel(me.x, me.y, Color.Green);
 
                e.Graphics.DrawImage(bmp, 0, 0, pictureBox1.Width, pictureBox1.Height);
 
 
            }
}
Merci
Images attachées
Type de fichier : png dessinplan.png (36,0 Ko, 8 affichages)
yann458 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/03/2013, 14h28   #2
hamza.rezgui
Invité de passage
 
Inscription : décembre 2011
Messages : 29
Détails du profil
Informations personnelles :
Localisation : Tunisie

Informations forums :
Inscription : décembre 2011
Messages : 29
Points : 1
Points : 1
Par défaut re

tu doit appliquer un filtre sur ton image
hamza.rezgui est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 07h50.


 
 
 
 
Partenaires

Hébergement Web