开发者

JPG Image Processing

Is it possible to disable 'Chroma Subsampling' during resampling or resizing a JPG image?

Disabling Chroma Subsampling is same as YCbCr filter 4x4x4 as far as I understand.

Is there a library for .NET 开发者_开发百科which I can use to do it?

Thanks for reading friends.


I don't know of a way to do it natively but there are libraries out there such as FreeImage that have options to change the subsampling.

EDIT

Here's a sample with OR'd together flags:

    Using I = New FreeImageAPI.FreeImageBitmap("c:\input.jpg")
        I.Save("c:\output.jpg", FreeImageAPI.FREE_IMAGE_FORMAT.FIF_JPEG, FreeImageAPI.FREE_IMAGE_SAVE_FLAGS.JPEG_SUBSAMPLING_444 Or FreeImageAPI.FREE_IMAGE_SAVE_FLAGS.JPEG_QUALITYSUPERB)
    End Using
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜