2 ms·
If you want to open an image file of unknown resolution, you might want the library to allocate and return a byte array matching the resolution of the image. O
by michaelt 3y ago
If you want to open an image file of unknown resolution, you might want the library to allocate and return a byte array matching the resolution of the image.
Oh, you could design a more complex API to avoid that - but I'm a programmer of very average ability, ask me to juggle too many buffers and struts and I'll probably introduce a buffer overflow by mistake.