How to create an empty (0x0) image?

I am trying to figure out a way to create an image with zero width and zero height that will conform to the standard of what format works.

I already tried the Windows Bitmap (BMP) format (only a 54-byte header file), but it seems that image readers will not accept it.

Theoretical byte string 0x0-BMP:

424D360000000000000036000000280000000000000000000000010020000000000000000000C40E0000C40E00000000000000000000

What format will this support, and what tools can I use to create it? Even a software solution would be enough (e.g. C # System.Drawing script).

+5
source share
3 answers

1 1. , 1x1 , , 0x0 . 67- PNG http://garethrees.org/2007/11/14/pngcrush/, , . 67 .

+5

, 1x1 . 0x0, . : PictureBox = 0 width = 0, . , .

, , . , 0x0, ... , .

0

Here is the svg file, which is mostly empty:

<?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg"/>

which defaults to 1x1px.

To force the image to 0x0px, you can try:

<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0"/>
0
source

All Articles