How to create 1024x1024 RGB bitmap image of white?

前端 未结 4 1051
时光取名叫无心
时光取名叫无心 2020-12-15 16:11

It\'s embarrassing to ask this question but can\'t find an answer.

I tried this in vain.

Image resultImage = new Bitmap(image1.Width, image1.Height,          


        
4条回答
  •  隐瞒了意图╮
    2020-12-15 16:33

    Another approach,

    Create a unit bitmap

    var b = new Bitmap(1, 1);
    b.SetPixel(0, 0, Color.White);
    

    And scale it

    var result = new Bitmap(b, 1024, 1024);
    

提交回复
热议问题