Ali_79 0 Newbie Poster

Hello everyone!
I am working on a project. I got datas from a HID device which are 128 bit and want to show them as a bitmap image. I draw an image with just one line. But want to display 64 of those datas and always add new line and remove first line like a flow loop. Here is my draw codes:

public void ReceiveImage()
        {
            var arrayHandle = System.Runtime.InteropServices.GCHandle.Alloc(value, System.Runtime.InteropServices.GCHandleType.Pinned);

            var bmp = new Bitmap(32, 1, 16, System.Drawing.Imaging.PixelFormat.Format64bppArgb, arrayHandle.AddrOfPinnedObject());
            dataBitmapPB.BackgroundImageLayout = ImageLayout.Zoom;
            dataBitmapPB.BackgroundImage = bmp;
        }

Could anyone helps?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.