How to write to a (Bitmap?) image buffer for faster GDI+ displays?

前端 未结 5 780
眼角桃花
眼角桃花 2021-01-07 11:14

Using C++ and .net I have a stream of data I want to display as a scrolling image. Each time I get some new data I want to add it as a new row (128x1 pixels) and scroll the

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-07 11:48

    Bitmap bmpImage = new Bitmap(512,512);

    for (int iRow = 0; iRow < 512; iRow++)

    {

      for (int iCol = 0; iCol <512; iCol++)
                            {
                                Color clr;
                                bmpImage.SetPixel(iCol, iRow, clr);
                            }
    

    }

    (Image)bmpImage.save()

提交回复
热议问题