Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Picture, comment pivoter image ?

2 réponses
Avatar
LE TROLL
Bonjour,

Dans une pictureBox, comment faire pivoter l'image de + ou - 90° ?

Cordialement ;o)

-
Logiciels, romans, contacts : http://irolog.free.fr
_______________________
.
.

2 réponses

Avatar
Richard Clark
LE TROLL a écrit :
Bonjour,

Dans une pictureBox, comment faire pivoter l'image de + ou - 90° ?

Cordialement ;o)

-
Logiciels, romans, contacts : http://irolog.free.fr
_______________________
.
.




Il faut que tu le fasse toi même, ie en créant toi même l'image pivotée.
Pour cela, utilise l'objet Graphics.

Dim bmp as new Bitmap(600,400)
Dim g as Graphics = Graphics.FromImage(bmp)
g.DrawImage(originalBitmap, .......y'a plein d'options la)

g.Dispose


Richard Clark
http://www.c2i.fr
Le 1er site .NET
Avatar
LE TROLL
Bonjour Richard,

Merci... toutefois j'ai besoin de conserver l'image dans une boîte, or
là (je verrais quand j'en aurai besoin), il me semble qu'il faut dessiner
directement sur la feuille, alors tant pis, je vais faire un jeu d'images
horizontales afin de pouvoir les charger immédiatement...

Cordialement ;o)

-
Logiciels, romans, contacts : http://irolog.free.fr
_______________________
.
.


"Richard Clark" a écrit dans le message de
news:
LE TROLL a écrit :
Bonjour,

Dans une pictureBox, comment faire pivoter l'image de + ou - 90° ?

Cordialement ;o)

-
Logiciels, romans, contacts : http://irolog.free.fr
_______________________
.
.




Il faut que tu le fasse toi même, ie en créant toi même l'image pivotée.
Pour cela, utilise l'objet Graphics.

Dim bmp as new Bitmap(600,400)
Dim g as Graphics = Graphics.FromImage(bmp)
g.DrawImage(originalBitmap, .......y'a plein d'options la)

g.Dispose


Richard Clark
http://www.c2i.fr
Le 1er site .NET