¡@

Home 

c# Programming Glossary: codec

Quality of a saved JPG in C#

http://stackoverflow.com/questions/1484759/quality-of-a-saved-jpg-in-c-sharp

GetEncoder ImageFormat format ImageCodecInfo codecs ImageCodecInfo.GetImageDecoders foreach ImageCodecInfo codec.. ImageCodecInfo.GetImageDecoders foreach ImageCodecInfo codec in codecs if codec.FormatID format.Guid return codec return.. foreach ImageCodecInfo codec in codecs if codec.FormatID format.Guid return codec return null Ref..

Ghost-borders ('ringing') when resizing in GDI+

http://stackoverflow.com/questions/1890605/ghost-borders-ringing-when-resizing-in-gdi

encoderParams null foreach ImageCodecInfo codec in ImageCodecInfo.GetImageEncoders if codec.MimeType image jpeg.. ImageCodecInfo codec in ImageCodecInfo.GetImageEncoders if codec.MimeType image jpeg encoder codec use highest quality compression.. if codec.MimeType image jpeg encoder codec use highest quality compression settings encoderParams new EncoderParameters..

Reading RAW image files as GDI+ bitmaps

http://stackoverflow.com/questions/227604/reading-raw-image-files-as-gdi-bitmaps

WPF that would read an image using any installed image codec and then display it in an image control. And I modified this..

High Quality Image Scaling C#

http://stackoverflow.com/questions/249587/high-quality-image-scaling-c-sharp

new Dictionary string ImageCodecInfo if there are no codecs try loading them if encoders.Count 0 get all the codecs.. codecs try loading them if encoders.Count 0 get all the codecs foreach ImageCodecInfo codec in ImageCodecInfo.GetImageEncoders.. 0 get all the codecs foreach ImageCodecInfo codec in ImageCodecInfo.GetImageEncoders add each codec to the..

Convert webpage to image from ASP.NET

http://stackoverflow.com/questions/2715385/convert-webpage-to-image-from-asp-net

static ImageCodecInfo GetEncoder ImageFormat format var codecs ImageCodecInfo.GetImageDecoders foreach var codec in codecs.. var codecs ImageCodecInfo.GetImageDecoders foreach var codec in codecs if codec.FormatID format.Guid return codec Return.. ImageCodecInfo.GetImageDecoders foreach var codec in codecs if codec.FormatID format.Guid return codec Return return..

Bmp to jpg/png in C#

http://stackoverflow.com/questions/41665/bmp-to-jpg-png-in-c-sharp

var ratio new EncoderParameter qualityEncoder quality var codecParams new EncoderParameters 1 codecParams.Param 0 ratio var.. quality var codecParams new EncoderParameters 1 codecParams.Param 0 ratio var jpegCodecInfo one of the codec infos.. 1 codecParams.Param 0 ratio var jpegCodecInfo one of the codec infos from ImageCodecInfo.GetImageEncoders with mime type image..

Extending the list of supported image formats in GDI+

http://stackoverflow.com/questions/455018/extending-the-list-of-supported-image-formats-in-gdi

and a few cases of people implementing their own codecs by other means. Even asked in news microsoft.public.win32.programmer.gdi.. way to do what you want is to develop a WIC enabled codec for your format. The Windows Imaging Component WIC API comes.. there also seems to exist another way to extend GDI codec list but those waters are a lot murkier. If you open gdiplus.dll..

Working way to make video from images in C#

http://stackoverflow.com/questions/539257/working-way-to-make-video-from-images-in-c-sharp

spits out an error message that says cannot find suitable codec for file jpeg image2.jpg . Helpful that. In any case FFMPEG..