midora Posted February 27, 2014 Share Posted February 27, 2014 (edited) 'Portable Anymap' FileType Plugin (.PAM, .PBM, .PGM, .PPM) Summary Paint.NET FileType plugin which loads and saves image files in one of the PNM (Portable Anymap) file formats: PAM - Portable Arbitrary Map (Black and White, Grayscale, RGB; Alpha channel; raw only; up to 16bits per channel) PBM - Portable Bit Map: (Black and White; plain and raw) PGM - Portable Gray Map: (Grayscale; plain and raw; up to 16bits per channel) PPM - Portable Pixel Map: (RGB; plain and raw; up to 16bits per channel) These are quite old image formats used mainly in the academic area. They do not support any kind of packing the pixels. For more information see 'The Netpbm Formats' Author Martin Osieka Download Find the latest version of the plugin ImPNM.FileType v1.1 (19.2.2015) here. Installation Follow the instructions carefully Copy the file ImPNM.FileType.dll to the Paint.NET\FileTypes\ folder Remove other plugins supporting the same file types (.pam, .pbm, .pgm, .ppm) from Paint.NET\FileTypes\ folder (to avoid possible conflicts) I.e. 'PNMPlugin.dll' plugin. After a restart of Paint.NET you will find the plugin in the 'Save as type' selector of the 'Save' and 'Save As' dialog. 'Load' does not use a dialog. Compatibility Paint.NET 3.5.11 and 4.0.5 Supported languages English Dialog options Save as .PAM dialog options Output color model selector You may choose between: RGB+Alpha, RGB, Gray+Alpha, Gray, Black and White + Alpha, and Black and White. Because the internal color model of Paint.NET is RGB+Alpha the plugin has to convert the existing image data if you are choosing a different output model. RGB+Alpha: Outputs RGB + A. RGB: Blends the image against the background color (w/o effect if the image is opaque). Outputs RGB. Gray+Alpha: Calculates gray values from RGB values. Outputs G + A. Gray: Blends the image against the background color (w/o effect if the image is opaque) and calculates gray values from the resulting RGB values. Outputs G. Black and White + Alpha: Calculates gray values from RGB values. Converts Gray to BW. Outputs BW + A. Black and White: Blends the image against the background color (w/o effect if the image is opaque) and calculates gray values from the resulting RGB values. Converts Gray values to BW values. Outputs BW. 'Maximum value in channel' numeric control In Paint.NET the maximum value in all channels (R, G, B, and A) is 255. This control allows you to use any value between 1 and 65535. The formula to map the channel values is dstValue = (srcValue * maxValue + 127) / 255 For sure if you are scaling the value up then you will not get more details in the picture. No magic. The maximum value used by 'Black and White' is always 1. Background color selector This color is used if one of the color models w/o alpha is selected. Save as .PBM, .PGM, and .PPM dialog options There is only one difference against the .PAM dialog. Instead of the color model (which is fix by the file type) you are able to select between a raw (binary) and a plain (Ascii text) mode. Known issues The color wheel control used to set the background color does not match the size available in the dialog. It looks somehow OK in Paint.NET 3.5.11 but not quite good in Paint.NET 4.0 BETA. Maybe this will change in a later version of Paint.NET. To Do list Optimize for speed Examples Paint.NET forum logo in PAM format.zip History 1.1 (19.2.2015) Fixes the issue that the plugin opens the web page of the plugin w/o a request of the user. 1.0 (27.2.2014) First public release Edited February 28, 2018 by midora Added link to zipped DLL Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.