C#帮助如何增加图像列表的图像大小

C#帮助如何增加图像列表的图像大小

本文介绍了C#帮助如何增加图像列表的图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用图像列表和标签实现了滑动图像,但图像大小限制为255x255但图像大小我想要400 x 400

如何设置默认值为16 x 16我设置为255 x 255但我想设置为400 x 400或更多



点击下一个按钮显示下一个图像,但每个图像显示只有16 x 16或255 x 255但想增加图像大小请帮助

这是我实施的代码



i have implemented the sliding image using imagelist and label but the image size is limit to 255x255 but the size of image i want to be 400 x 400
how to set that by default it is 16 x 16 i have set up to 255 x 255 but i want to set to 400 x 400 or more

on click of next button the next image displays but every image displays only in 16 x 16 or 255 x 255 but want increase in size of image pls help
this is the code i have implemented

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CG_LEARN.working {
    public partial class applicationofcg : UserControl
    {
        private int indice;

        public applicationofcg()
        {
            InitializeComponent();
            indice = 0;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            indice++;

            if (indice > 7)
               indice = 0;
               label9.ImageIndex = indice;
        }

    }
}





我尝试过:



i试图增加图像的大小,但没有增加图像请帮助

默认为16 x 16并扩展到255 x 255,但我想要更多400 x 400或更多



What I have tried:

i have tried to increase the size of image but not getting increase in image pls help
by default is 16 x 16 and extend up to 255 x 255 but i want more then that 400 x 400 or more

推荐答案


这篇关于C#帮助如何增加图像列表的图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 14:45