IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

AWT/Swing Java Discussion :

[Info]Rectangles de sélection : logiciel de dessin ?


Sujet :

AWT/Swing Java

  1. #1
    Membre averti
    Avatar de rozwel
    Inscrit en
    Mars 2002
    Messages
    324
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 324
    Points : 334
    Points
    334
    Par défaut [Info]Rectangles de sélection : logiciel de dessin ?
    Bonjour,

    Je travaille en ce moment sur un composant d'image qui doit permettre à l'utilisateur de sélectionner une zone rectangulaire de l'image. Le MouseListener/MouseMotionListener associé doit donc permettre de créer ET de redimensionner des rectangles.

    Mais les algos d'extension de rectangle que j'ai essayé de mettre en place me créent pas mal de bugs graphiques assez désagréables.

    Est-ce que quelqu'un aurait déjà développé un module équivalent ou connaitrait une espèce de Paint en Java (avec le source ouvert bien sur) qui pourrait me servir de référence.

    Merci d'avance

    rozwel

    PS : je suis pas super doué en géométrie et ça sert à rien de réinventer la poudre s'il suffit d'adapter...

  2. #2
    Membre averti
    Avatar de JHelp
    Inscrit en
    Octobre 2002
    Messages
    185
    Détails du profil
    Informations forums :
    Inscription : Octobre 2002
    Messages : 185
    Points : 444
    Points
    444
    Par défaut
    Excuses moi, j'ai pas bien compris ce que tu arrives pas à faire.
    As-tu un soucis pour dessiner le rectangle de selection ?
    As-tu un soucis pour dessiner un rectangle ?
    As-tu un soucis pour modifier un rectangle déja déssiné ?
    JHelp

  3. #3
    Membre averti
    Avatar de rozwel
    Inscrit en
    Mars 2002
    Messages
    324
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 324
    Points : 334
    Points
    334
    Par défaut
    Mon problème principal est le suivant.
    J'ai un rectangle qui existe déjà
    Dans la méthode mouseDragged je dois faire en sorte de redimensionner ce rectangle de façon à y intégrer le point courant du pointeur de souris.

    Voila le code...
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
     
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
     
    /**
     * ZoneMouseListener.
     */
    public class ZoneMouseListener implements MouseMotionListener, MouseListener{
    	private final static int IDLE = 0;
    	private final static int RESIZING_ZONE = 1;
    	private final static int CREATING_ZONE = 2;
     
    	private int x_sensibility;
    	private int y_sensibility;
    	private JImagePanel parent;
    	private int state;
    	private Rectangle rect;
     
    	public ZoneMouseListener(JImagePanel aPanel, int xSensibility, int ySensibility){
    		super();
    		x_sensibility = xSensibility;
    		y_sensibility = ySensibility;
    		parent = aPanel;
    		state = IDLE;
    		rect = null;
    	}
     
    	public void mousePressed(MouseEvent e){
    		if(SwingUtilities.isLeftMouseButton(e)){
    			Point pt = e.getPoint();
    			if(isOnBound(pt)){
    				state = RESIZING_ZONE;
    				rect = new LockedRectangle(parent.getCurrentRect(),
    				                           !reachTop(pt),
    				                           !reachRight(pt),
    				                           !reachBottom(pt),
    				                           !reachLeft(pt));
    			}
    			else{
    				state = CREATING_ZONE;
    				rect = new SuperRectangle(pt, new Dimension(0, 0));
    			}
    		}
    	}
     
    	public void mouseReleased(MouseEvent e){
    		if(SwingUtilities.isRightMouseButton(e) && state != IDLE){
    			parent.eraseZone();
    			rect = null;
    			state = IDLE;
    			return;
    		}
    		if(SwingUtilities.isLeftMouseButton(e)){
    			switch(state){
    				case IDLE:
    					return;
    				case RESIZING_ZONE:
    					parent.rectToCurrentZone(rect);
    					break;
    				case CREATING_ZONE:
    					parent.rectToNewZone(rect);
    					break;
    				default:
    					if(Utils.debug) System.err.println("Etat incohérent dans le ZoneMouseListener.mouseReleased : " + state);
    			}
    			state = IDLE;
    		}
    	}
     
    	public void mouseMoved(MouseEvent e){
    		Point pt = e.getPoint();
    		boolean top = reachTop(pt);
    		boolean bottom = reachBottom(pt);
    		boolean left = reachLeft(pt);
    		boolean right = reachRight(pt);
     
    		if(top && right){
    			parent.changeCurseur(Cursor.NE_RESIZE_CURSOR);
    		}
    		else if(top && left){
    			parent.changeCurseur(Cursor.NW_RESIZE_CURSOR);
    		}
    		else if(bottom && right){
    			parent.changeCurseur(Cursor.SE_RESIZE_CURSOR);
    		}
    		else if(bottom && left){
    			parent.changeCurseur(Cursor.SW_RESIZE_CURSOR);
    		}
    		else if(top){
    			parent.changeCurseur(Cursor.N_RESIZE_CURSOR);
    		}
    		else if(bottom){
    			parent.changeCurseur(Cursor.S_RESIZE_CURSOR);
    		}
    		else if(left){
    			parent.changeCurseur(Cursor.W_RESIZE_CURSOR);
    		}
    		else if(right){
    			parent.changeCurseur(Cursor.E_RESIZE_CURSOR);
    		}
    		else{
    			parent.changeCurseur(Cursor.DEFAULT_CURSOR);
    		}
    	}
     
    	public void mouseDragged(MouseEvent e){
    		switch(state){
    			case RESIZING_ZONE:
     
    			//break;
    			case CREATING_ZONE:
    				parent.eraseZone();
    				rect.add(e.getPoint());
    				parent.drawZone(rect);
    				break;
    			case IDLE:
    				return;
    			default :
    				if(Utils.debug) System.err.println("Etat incohérent dans le ZoneMouseListener.mouseDragged : " + state);
    		}
    	}
     
    	public void mouseClicked(MouseEvent e){
     
    	}
     
    	public void mouseEntered(MouseEvent e){
    	}
     
    	public void mouseExited(MouseEvent e){
    	}
     
     
    	/************************/
    	/* Méthodes utilitaires */
    	/**
             * ********************
             */
    	private boolean reachTop(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.y - r.y) < y_sensibility &&
    		    pt.x >= r.x && pt.x <= (r.x + r.width);
    	}
     
    	private boolean reachBottom(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.y - (r.y + r.height)) < y_sensibility &&
    		    pt.x >= r.x && pt.x <= (r.x + r.width);
    	}
     
    	private boolean reachLeft(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.x - r.x) < x_sensibility &&
    		    pt.y >= r.y && pt.y <= (r.y + r.height);
    	}
     
    	private boolean reachRight(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.x - (r.x + r.width)) < x_sensibility &&
    		    pt.y >= r.y && pt.y <= (r.y + r.height);
    	}
     
    	private boolean isOnBound(Point pt){
    		return parent.getCurrentRect() != null && (reachTop(pt) || reachBottom(pt) || reachRight(pt) || reachLeft(pt));
    	}
     
    	private class SuperRectangle extends Rectangle{
    		public SuperRectangle(Rectangle r){
    			super(r);
    		}
     
    		public SuperRectangle(Point p, Dimension d){
    			super(p, d);
    		}
     
    		public void add(int newx, int newy){
    			int x1, x2, y1, y2;
    			if(!contains(newx, newy)){
    				x1 = Math.min(x, newx);
    				x2 = Math.max(x + width, newx);
    				y1 = Math.min(y, newy);
    				y2 = Math.max(y + height, newy);
     
    			}
    			else{
    				x1 = Math.min(x, newx);
    				x2 = Math.min(x + width, newx);
    				y1 = Math.min(y, newy);
    				y2 = Math.min(y + height, newy);
    			}
    			x = x1;
    			y = y1;
    			width = x2 - x1;
    			height = y2 - y1;
    		}
     
    		public void add(Point pt){
    			this.add(pt.x, pt.y);
    		}
    	}
     
    	private class LockedRectangle extends Rectangle{
    		private boolean topLocked;
    		private boolean rightLocked;
    		private boolean bottomLocked;
    		private boolean leftLocked;
     
    		public LockedRectangle(Rectangle r, boolean top, boolean right, boolean bottom, boolean left){
    			super(r);
    			topLocked = top;
    			rightLocked = right;
    			bottomLocked = bottom;
    			leftLocked = left;
    		}
     
    		public void add(int newx, int newy){
    			int x1, x2, y1, y2;
    			if(!contains(newx, newy)){
    				x1 = Math.min(x, newx);
    				x2 = Math.max(x + width, newx);
    				y1 = Math.min(y, newy);
    				y2 = Math.max(y + height, newy);
    			}
    			else{
    				x1 = Math.min(x, newx);
    				x2 = Math.min(x + width, newx);
    				y1 = Math.min(y, newy);
    				y2 = Math.min(y + height, newy);
    			}
    			if(!leftLocked) x = x1;
    			if(!topLocked) y = y1;
    			if(!rightLocked) width = x2 - x1;
    			if(!bottomLocked) height = y2 - y1;
    		}
     
    		public void add(Point pt){
    			this.add(pt.x, pt.y);
    		}
    	}
    }
    Merci pour ton intéret

  4. #4
    Membre averti
    Avatar de JHelp
    Inscrit en
    Octobre 2002
    Messages
    185
    Détails du profil
    Informations forums :
    Inscription : Octobre 2002
    Messages : 185
    Points : 444
    Points
    444
    Par défaut
    Bon je crois comprendre maintenant pourquoi tu as un pb de bug d'affichage. En fait si j'ai bien compris, tu effaces la partie de ton écran qui corespond à ton rectangle à chaque redimensionnement. En fait ce n'est pas ce qu'il faut faire. En fait il faut plutôt passer par un systéme de "couches". en plus je te conseilles, si tu peux, de passer par Java2D ça te simplifiera la vie si tu veux ajouter d'autres formes.
    Bon je t'explque le principe : tu as un une liste (java.util.ArrayLit par exemple) qui contient l'ensemble des formes déja déssiner. Le paintComponent de ton composant qui dessine le dessin dessine dans l'ordre les formes. En mode création, tu ajoutes la nouvelle forme à ta liste, tu as un écouteur souris qui met à jour cette forme d'un point de vu mémoire, puis graphique.
    Bien sur je ne serait que trop te conseillé d'utiliser le systéme du double-buffering pour que l'animation soit plus lisse.
    L'avantage d'avoir en stock toute les formes en mémoire c'est que tu peux en passer une devant l'autre, en effacer une, en modifier une, quelque soit l'ordre de création, tu peux en fusioner, ... Car tu peux savoir simplement ou elles se trouvent, surtout si tu utilises Java2D.
    Je sais pas si j'ai été clair.
    JHelp

  5. #5
    Membre averti
    Avatar de rozwel
    Inscrit en
    Mars 2002
    Messages
    324
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 324
    Points : 334
    Points
    334
    Par défaut
    Je te remercie pour tes conseils avisés mais malheureusement ce n'est pas de ça dont j'avais besoin. Pour redessiner mes zones en effaçant les précédentes j'utilise le mode XOR.

    Mon problème était plus algorithmique en fait mais j'ai trouvé une solution finalement. Pour la communauté je joins le code...

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
     
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
     
    /**
     * ZoneMouseListener.
     * 
     */
    public class ZoneMouseListener implements MouseMotionListener, MouseListener{
    	private final static int IDLE = 0;
    	private final static int RESIZING_ZONE = 1;
    	private final static int CREATING_ZONE = 2;
     
    	private int x_sensibility;
    	private int y_sensibility;
    	private JImagePanel parent;
    	private int state;
    	private SuperRectangle crect;
    	private ResizableRectangle rrect;
    	private Point start;
    	private Point end;
     
    	public ZoneMouseListener(JImagePanel aPanel, int xSensibility, int ySensibility){
    		super();
    		x_sensibility = xSensibility;
    		y_sensibility = ySensibility;
    		parent = aPanel;
    		state = IDLE;
    		crect = null;
    		rrect = null;
     
    		start = null;
    		end = null;
    	}
     
    	public void mousePressed(MouseEvent e){
    		if(SwingUtilities.isLeftMouseButton(e)){
    			start = e.getPoint();
    			if(isOnBound(start)){
    				state = RESIZING_ZONE;
    				rrect = new ResizableRectangle(parent.getCurrentRect(),
    				                              reachTop(start),
    				                              reachRight(start),
    				                              reachBottom(start),
    				                              reachLeft(start));
    			}
    			else{
    				state = CREATING_ZONE;
    				crect = new SuperRectangle(start, new Dimension(0, 0));
    			}
    		}
    	}
     
    	public void mouseReleased(MouseEvent e){
    		if(SwingUtilities.isRightMouseButton(e) && state != IDLE){
    			parent.eraseZone();
    			crect = null;
    			rrect = null;
    			state = IDLE;
    			return;
    		}
    		if(SwingUtilities.isLeftMouseButton(e)){
    			switch(state){
    				case IDLE:
    					return;
    				case RESIZING_ZONE:
    					parent.rectToCurrentZone(rrect);
    					break;
    				case CREATING_ZONE:
    					parent.rectToNewZone(crect);
    					break;
    				default:
    					if(Utils.debug) System.err.println("Etat incohérent dans le ZoneMouseListener.mouseReleased : " + state);
    			}
    			state = IDLE;
    		}
    	}
     
    	public void mouseMoved(MouseEvent e){
    		Point pt = e.getPoint();
    		boolean top = reachTop(pt);
    		boolean bottom = reachBottom(pt);
    		boolean left = reachLeft(pt);
    		boolean right = reachRight(pt);
     
    		if(top && right){
    			parent.changeCurseur(Cursor.NE_RESIZE_CURSOR);
    		}
    		else if(top && left){
    			parent.changeCurseur(Cursor.NW_RESIZE_CURSOR);
    		}
    		else if(bottom && right){
    			parent.changeCurseur(Cursor.SE_RESIZE_CURSOR);
    		}
    		else if(bottom && left){
    			parent.changeCurseur(Cursor.SW_RESIZE_CURSOR);
    		}
    		else if(top){
    			parent.changeCurseur(Cursor.N_RESIZE_CURSOR);
    		}
    		else if(bottom){
    			parent.changeCurseur(Cursor.S_RESIZE_CURSOR);
    		}
    		else if(left){
    			parent.changeCurseur(Cursor.W_RESIZE_CURSOR);
    		}
    		else if(right){
    			parent.changeCurseur(Cursor.E_RESIZE_CURSOR);
    		}
    		else{
    			parent.changeCurseur(Cursor.DEFAULT_CURSOR);
    		}
    	}
     
    	public void mouseDragged(MouseEvent e){
    		end = e.getPoint();
    		switch(state){
    			case RESIZING_ZONE:
    				parent.eraseZone();
    				rrect.moveBound(end);
    				parent.drawZone(rrect);
    				break;
    			case CREATING_ZONE:
    				parent.eraseZone();
    				crect.redefine(start, end);
    				parent.drawZone(crect);
    				break;
    			case IDLE:
    				return;
    			default :
    				if(Utils.debug) System.err.println("Etat incohérent dans le ZoneMouseListener.mouseDragged : " + state);
    		}
    	}
     
    	public void mouseClicked(MouseEvent e){
     
    	}
     
    	public void mouseEntered(MouseEvent e){
    	}
     
    	public void mouseExited(MouseEvent e){
    	}
     
     
    	/************************/
    	/* Méthodes utilitaires */
    	/**
             * ********************
             */
    	private boolean reachTop(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.y - r.y) < y_sensibility &&
    		    pt.x >= r.x && pt.x <= (r.x + r.width);
    	}
     
    	private boolean reachBottom(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.y - (r.y + r.height)) < y_sensibility &&
    		    pt.x >= r.x && pt.x <= (r.x + r.width);
    	}
     
    	private boolean reachLeft(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.x - r.x) < x_sensibility &&
    		    pt.y >= r.y && pt.y <= (r.y + r.height);
    	}
     
    	private boolean reachRight(Point pt){
    		Rectangle r = parent.getCurrentRect();
    		return
    		    r != null &&
    		    Math.abs(pt.x - (r.x + r.width)) < x_sensibility &&
    		    pt.y >= r.y && pt.y <= (r.y + r.height);
    	}
     
    	private boolean isOnBound(Point pt){
    		return parent.getCurrentRect() != null && (reachTop(pt) || reachBottom(pt) || reachRight(pt) || reachLeft(pt));
    	}
     
    	private class SuperRectangle extends Rectangle{
    		public SuperRectangle(Rectangle r){
    			super(r);
    		}
     
    		public SuperRectangle(Point p, Dimension d){
    			super(p, d);
    		}
     
    		public void add(int newx, int newy){
    			int x1, x2, y1, y2;
    			if(!contains(newx, newy)){
    				x1 = Math.min(x, newx);
    				x2 = Math.max(x + width, newx);
    				y1 = Math.min(y, newy);
    				y2 = Math.max(y + height, newy);
    			}
    			else{
    				x1 = Math.min(x, newx);
    				x2 = Math.min(x + width, newx);
    				y1 = Math.min(y, newy);
    				y2 = Math.min(y + height, newy);
    			}
    			x = x1;
    			y = y1;
    			width = x2 - x1;
    			height = y2 - y1;
    		}
     
    		public void add(Point pt){
    			this.add(pt.x, pt.y);
    		}
     
    		public void redefine(Point st, Point en){
    			x = Math.min(st.x, en.x);
    			y = Math.min(st.y, en.y);
    			width = Math.abs(st.x - en.x);
    			height = Math.abs(st.y - en.y);
    		}
    	}
     
    	private class ResizableRectangle extends SuperRectangle{
    		private boolean topMoving;
    		private boolean rightMoving;
    		private boolean bottomMoving;
    		private boolean leftMoving;
     
    		public ResizableRectangle(Rectangle r, boolean top, boolean right, boolean bottom, boolean left){
    			super(r);
    			topMoving = top;
    			rightMoving = right;
    			bottomMoving = bottom;
    			leftMoving = left;
    		}
     
    		public void moveBound(Point pt){
    			if(topMoving){
    				if(pt.y >= y+height){
    					height = pt.y - (y+height);
    					y = pt.y - height;
    					topMoving = false;
    					bottomMoving = true;
    				}
    				else{
    					int dy = y - pt.y;
    					y = pt.y;
    					height += dy;
    				}
    			}
    			if(rightMoving){
    				if(pt.x <= x){
    					width = x - pt.x;
    					x = pt.x;
    					rightMoving = false;
    					leftMoving = true;
    				}
    				else{
    					width = pt.x - x;
    				}
    			}
    			if(bottomMoving){
    				if(pt.y <= y){
    					height = y - pt.y;
    					y = pt.y;
    					bottomMoving = false;
    					topMoving = true;
    				}
    				else{
    					height = pt.y - y;
    				}
    			}
    			if(leftMoving){
    				if(pt.x >= x+width){
    					width = pt.x - (x+width);
    					x = pt.x - width;
    					leftMoving = false;
    					rightMoving = true;
    				}
    				else{
    					int dx = x - pt.x;
    					x = pt.x;
    					width += dx;
    				}
    			}
    		}
    	}
    }

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Infos pour projet de logiciel de dessin
    Par Mujin dans le forum Bibliothèques
    Réponses: 0
    Dernier message: 18/03/2012, 17h19
  2. Réponses: 3
    Dernier message: 08/12/2010, 16h27
  3. Comment dessiner un rectangle de sélection ?
    Par nds75000 dans le forum VB.NET
    Réponses: 0
    Dernier message: 11/07/2010, 16h52
  4. dessiner un rectangle de sélection
    Par ninours23 dans le forum GTK+ avec C & C++
    Réponses: 4
    Dernier message: 13/02/2008, 16h51

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo