Tiff
Übersicht

RysBetreff: Tiff |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Hi, I'm older person and recently I started BlitzMax programming. I'm writing a program to help me with my work. My scanner gives me files in TIFF format.
I need to open it with program created in Max. I tried to find how to force Max to reed TIFF files, with no succes. For now I'm using irfanview but I got loads of this files everyday. Any advice for me? Thanks. |
||
![]() |
DivineDominion |
![]() Antworten mit Zitat ![]() |
---|---|---|
This is probably going to be complicated, but you can use external modules to load TIFF files.
GDI+: https://social.msdn.microsoft....g-gif-tiff SDL: https://www.libsdl.org/projects/SDL_image/ There's a bmax-ng module to interface with SDL. That should get you started. I have 0 experience working with that, though, so good luck figuring out the details ![]() |
||
christian.tietze@gmail.com - https://christiantietze.de
macOS |
RysBetreff: Tiff |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
I would ask for more information on this subject. I'm just starting. | ||
#ReaperNewsposter |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
Hello there,
the freeimage.mod (part of the bah.mod scope) made by Brucey and wrapper for the Freeimage library (http://freeimage.sourceforge.net/) should/can do this: https://github.com/maxmods/bah...eimage.mod The library is also capable of RAW files for which I have used this mod several years ago. I hope my memories are right. Hope it still works well! Have fun! |
||
AMD Athlon 64 3500+, ATI AX800 Pro/TD, 2048 MB DRR 400 von Infineon, ♥RIP♥ (2005 - Juli 2015 -> sic!)
Blitz3D, BlitzMax, MaxGUI, Monkey X; Win7 |
![]() |
DAK |
![]() Antworten mit Zitat ![]() |
---|---|---|
It might be easier to use some command line tool (like e.g. imagemagick which is available on Windows, Linux and Mac OS) to convert the TIFF to something like PNG. You can call command line programs from BlitzMax using BlitzMax: [AUSKLAPPEN] system_("imagemagick.exe")
|
||
Gewinner der 6. und der 68. BlitzCodeCompo |
RysBetreff: Tiff |
![]() Antworten mit Zitat ![]() |
|
---|---|---|
1. Scan in shades of gray to tif
2. Irfanview - tif ---> png 3. Blitzmax - Thresholding png 4. Irfanview png ---> tif 5 Save tif Want: 1. Scan in shades of gray to tif 2. BlitzMax - everything |
||
![]() |
HolzchopfMeisterpacker |
![]() Antworten mit Zitat ![]() |
---|---|---|
Isn't there a possibility to open and dictate Irfanview via command line? Maybe this site helps. It could be possible to let BlitzMax call Irfanview and let that do the conversion. Or the other way round: I think Irfanview support batch processing, so maybe you can tell it to convert the file, pass it to your BlitzMax application and then convert it back | ||
Erledige alles Schritt um Schritt - erledige alles. - Holzchopf
CC BY ♫ BinaryBorn - Yogurt ♫ (31.10.2018) Im Kopf da knackt's und knistert's sturm - 's ist kein Gedanke, nur ein Wurm |
![]() |
DAK |
![]() Antworten mit Zitat ![]() |
---|---|---|
@Rys: I know what you want. But it might be a lot easier to just call the command line version of irfanview (or imagemagick) to convert it. So it would be like this:
1. Scan in shades of gray to tif 2. Run your Blitzmax program 2.1. Blitzmax calls Irfanview or Imagemagick to convert tif to png 2.2. Blitzmax runs whatever you want it to do with the png 2.3. Blitzmax calls Irfanview or Imagemagick to convert png back to tiff and saves that That way, from the user's perspective, Blitzmax still does everything but instead of processing the tif using some library it processes it using a command line tool. |
||
Gewinner der 6. und der 68. BlitzCodeCompo |
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group