Originally Posted by
jdarling
Maybe I missed something, but I didn't see a pointer to the raw bitmap being passed. Note that you can't pass a TBitmap, you have to pass the pixel pointer and pixel format across to the exporter. If you know that your always running in 24 bit then that makes thing easier.
Code:
/Sends width*height*3 bytes in the data pointer
function SaveRGB(data: pointer; width, height: cardinal): boolean;
The data: pointer, it sends width*height*3 bytes of raw bitmap to the plugin...
Originally Posted by
jdarling
Just make sure that you mark ALL methods that need to be exporter with cdecl and all strings are PChar, AnsiString (Pascal version of PChar directly compatible), or ShortStrings.
Will do...
Originally Posted by
jdarling
Extension is not necessary though
. I for one would most likely put more then one export format into a single exporter DLL. Thus prompting the user to select the format they want to save to. Instead just have an export menu with sub menu items containing the exporters that you loaded.
The only reason I wanted an extension is so when you browse for a filename to save, it can filter it to the relevant file type!
Bookmarks