Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

VncPixelFormat now also allows copying of bpp16 rgb565 format #169

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Hofersa
Copy link

@Hofersa Hofersa commented Aug 23, 2023

I had the requirement to handle bpp16rgb565 format from an embedded device vnc server.
Therefore I added handling for bpp16 rgb565 format to the Windows Forms project by using the corresponding Bitmap Format.
No bitmap conversion is taking place we just assure that the VncPixelFormat uses the same format for source and destination byte pointers.
The user needs to assure that the bitmap is created with the correct format. Conversion of VncPixelFormat and System.Drawing.PixelFormat and vice versa has been added for the Example project.

I don't know if this is complete or if issues with code I did not use would occur. I tested if the example project still works with the original bpp32 format as well as the bpp16 rgp565 and it works fine. Have a look and let me know if this is alright.

Hofer Sascha added 5 commits August 18, 2023 16:44
… an RGB32 Pixelformat and defined a static default VncPixelFormat which explicitely states what it does.
…ing the corresponding Bitmap Format.

No bitmap conversion is taking place we just assure that the VncPixelFormat uses the same format for source and destination byte pointers.
The user needs to assure that the bitmap is created with the correct format. Conversion of VncPixelFormat and System.Drawing.PixelFormat and vice versa has been added for the Example project.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant