У меня есть изображение в этой кнопке, как я могу изменить размер изображения? [code] // btnProfile // this.btnProfile.FlatAppearance.BorderSize = 0; this.btnProfile.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnProfile.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnProfile.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(147)))), ((int)(((byte)(149)))), ((int)(((byte)(169))))); this.btnProfile.Image = ((System.Drawing.Image)(resources.GetObject("btnProfile.Image"))); this.btnProfile.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnProfile.Location = new System.Drawing.Point(0, 310); this.btnProfile.Name = "btnProfile"; this.btnProfile.Padding = new System.Windows.Forms.Padding(30, 0, 0, 0); this.btnProfile.Size = new System.Drawing.Size(233, 41); this.btnProfile.TabIndex = 9; this.btnProfile.Text = "Profile"; this.btnProfile.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.btnProfile.UseVisualStyleBackColor = false; [/code] я использовал [code]Image originalImage = (Image)resources.GetObject("btnProfile.Image"); Image resizedImage = new Bitmap(originalImage, new Size(20, 20)); [/code] но это не сработало :