1

Topic: Error at saving of the big image in a file.

I try to save the big image in a file. Falls in System.Windows.Media.Imaging.BitmapEncoder.SaveFrame (SafeMILHandle frameEncodeHandle, SafeMILHandle encoderOptions, BitmapFrame frame) with System. ArgumentException. The Free translation exception. Message states "the Image exceeds the sizes supported by the given codec." Most likely behind this message hides WINCODEC_ERR_IMAGESIZEOUTOFRANGE from Windows Imaging Component, but I am not assured. The sense is clear, the reason too. But! Show to me please where I can esteem about these most  supported by the codec? What at them the maximum values? At least for Jpeg and Png. To standards the request not to send, for it agree it PNG, for example, should to hold easily 90 on width and height (width, height - 4 byte). In practice I cannot save and 32 on width.

2

Re: Error at saving of the big image in a file.

Hello, HotDog, you wrote: HD> the Sense is clear, the reason too. But! Show to me please where I can esteem about these most  supported by the codec? HD> what at them the maximum values? At least for Jpeg and Png. Have been experimentally clarified MaxWidth, MaxHeight. Jpeg: 65499 Pix Png: 65536 Pix Testirovalost on Win7/Win10, 64/32 Bit application