Skip to content

Cross-platform (Windows, Linux, MacOS) minimal FreeImage wrapper in .Net Core for resizing images

Notifications You must be signed in to change notification settings

Obin/FreeImageResizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeImageResizer

Cross-platform (Windows, Linux, MacOS) minimal FreeImage .Net Core wrapper for resizing images

Example

Resize PNG image to 200x200

FIBITMAP dib = FreeImage.Load(FREE_IMAGE_FORMAT.FIF_PNG, filePatch, FREE_IMAGE_LOAD_FLAGS.DEFAULT);
FIBITMAP dibResized = FreeImage.Rescale(dib, 200, 200, FREE_IMAGE_FILTER.FILTER_LANCZOS3);
FreeImage.Unload(dib);
FreeImage.Save(FREE_IMAGE_FORMAT.FIF_PNG, dibResized, filePatch, FREE_IMAGE_SAVE_FLAGS.DEFAULT);
FreeImage.Unload(dibResized);

Nuget

https://www.nuget.org/packages/FreeImageResizer/

About

Cross-platform (Windows, Linux, MacOS) minimal FreeImage wrapper in .Net Core for resizing images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages