Bonjour à tous,
mon problème est très simple,
j'ai un panel avec un backgroundImage définit comme suit :
Lorsque je resize ma fenetre, l'image scintille beaucoup. J'ai tenté de la mettre dans un pictureBox, sans succès.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 this.MyPanel.BackgroundImage = global::PRG.Properties.Resources.BackGroundIMG; this.MyPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.MyPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.MyPanel.Location = new System.Drawing.Point(617, 3); this.MyPanel.MaximumSize = new System.Drawing.Size(300, 500); this.MyPanel.Name = "MyPanel"; this.MyPanel.Size = new System.Drawing.Size(234, 485);
Y'a-t-il une solution pas trop lourde (i.e ne pas avoir à surcharger le pictureBox ou le panel) pour eviter ce scintillement ?
Merci
Partager