lingfude Posted September 3, 2021 Share Posted September 3, 2021 Hi. Is it possible add support for BMP format for GPS POI use? I think with FreeImage Project you can do this. I convert PNG to this BMP format with DView 1.1.3 but if I could do it with Paint.NET it would be great. I can't attached the BMP example but you can dowload from here. Quote Link to comment Share on other sites More sharing options...
midora Posted September 3, 2021 Share Posted September 3, 2021 Hi @lingfude this file is not in windows .bmp file format. .bmp files start with "BM" in the data. Your file starts with "RL". GPS PI icons are typically 8-bit bmps. No idea what this dview tool creates as bmp file. 1 Quote Link to comment Share on other sites More sharing options...
lingfude Posted September 4, 2021 Author Share Posted September 4, 2021 Hi @midora I don't know to but with DView I can view this bmp format and convert to this bmp format. I think they use the FreeImage Project to do that. Quote Link to comment Share on other sites More sharing options...
lingfude Posted September 4, 2021 Author Share Posted September 4, 2021 @midoraI think "RL" is some kind of bitmap compression. Quote Link to comment Share on other sites More sharing options...
midora Posted September 4, 2021 Share Posted September 4, 2021 There are .bmp file format variants which support rle4 and rle8 run-length encoding but still the file must start with "BM". The header contains a compression field telling a reader that the file is using rle. If you find a specification and a different file extension someone should be able to create a plugin for the format. I'm sure it would be pretty easy. But we can not create bmp files which can not be opened by image viewers. Maybe the data is rle4 or rle8 endcoded and someone tried to be clever and save some header bytes compared to the bmp specification. Quote Link to comment Share on other sites More sharing options...
lingfude Posted September 6, 2021 Author Share Posted September 6, 2021 Does this help someone to make a plugin?https://pastebin.com/DcxkN3yC Quote Link to comment Share on other sites More sharing options...
midora Posted September 6, 2021 Share Posted September 6, 2021 That's a good start. Now you have to think about a file extension. I.e. .rlbmp? It's just not possible to use .bmp. Quote Link to comment Share on other sites More sharing options...
lingfude Posted September 7, 2021 Author Share Posted September 7, 2021 16 hours ago, midora said: That's a good start. Now you have to think about a file extension. I.e. .rlbmp? It's just not possible to use .bmp. I think it's possible if do it like this: Quote Link to comment Share on other sites More sharing options...
null54 Posted September 7, 2021 Share Posted September 7, 2021 1 hour ago, lingfude said: I think it's possible if do it like this: Paint.NET requires file type plugins to have a different extension than the built-in formats. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
lingfude Posted September 7, 2021 Author Share Posted September 7, 2021 50 minutes ago, null54 said: Paint.NET requires file type plugins to have a different extension than the built-in formats. Ok i didn't know that. Quote Link to comment Share on other sites More sharing options...
midora Posted September 7, 2021 Share Posted September 7, 2021 I added a new topic in the development area to continue the discussion about development. https://forums.getpaint.net/topic/118616-bmrl-filetype-development/ 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.