If you don't mind waiting until this weekend, I would be happy to provide the DLL to you, on one condition.that you help me finish it up by testing it for me. I need to see if the P/Invoke tool can provide the prototypes, otherwise I will write my own extractor. Originally, I wrote the wrapper for DarkBASIC Pro, but all I am modifying it for use with VB, VC++, etc. (A lot of commercial programs use ImageMagick.) It would definitely be worth your while if you seek to have one of the most complete Open Source image processing suites out there. ![]() It would be quite a chore to do it, its a substantial D/L and the Windows projects are a little hard to get setup properly. I will examine the code later, if you want, but you can get the source for ImageMagick at their website. I think that PNGs and GIFs are a little more straightforward, for example, and PCX is more or less nighmarish by comparison. In ImageMagick, they have a function that does what you are talking loads the header into blob memory, and provides the information in the form of function calls that return the information. NET because they are not simply loaded into a generic area of memory, they are actually processed as if they were going to be displayed. I wrote an image processing DLL using ImageMagick++, it can do that for any image. The best FREE Image Processing suite on the planet! Tx2 = CStr (BmW) & "x" & CStr (BmH) & ", not ACRO" If BmH = 933 And BmW = 660 Then ' It's a 660x933 ACRO jpg (probably)ĮlseIf BmH = 84 And BmW = 60 Then ' It's an 84圆0 ACRO thumbnail īmap.Dispose() ' Avoid Out of Memory errors ![]() If LCase(Filename).EndsWith( ".jpg" ) Then ' If file is a jpg. ![]() It would be much simpler if I could just open the file for reading and find/calculate the jpeg width and height, as these are the only data I'm using to provide the picture info. but it's painfully slow - 190 jpegs 660x933 takes about 8 secs, while 140 jpegs 3456x2304 (Canon 350) takes 2mins 10secs. Setting the Bmap image = to the jpeg just to read the two dimensions clearly involves fetching and parsing the image file, so lots of disk and memory activity. Does the job. I'm looking through the jpeg's in a folder to identify those of a particular size (660 x 933), to put match/not-match information text into a ListView. Thanks - that's roughly what I'm already doing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |