loading tiff files

Member
Posts: 21
Joined: 2004.11
Post: #1
I've been looking for a source code to load TIFF files, where height and width don't are equal

(640,22).

Can anybody help me with this?
Quote this message in a reply
Moderator
Posts: 702
Joined: 2002.04
Post: #2
If you mean merely loading the image, wotsit.org is your friend; if you mean creating a texture using that NPoT image, somebody else will have to reply...

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #3
Using the code here, you can load an image in any format QuickTime can understand:

http://onesadcookie.is-a-geek.net/svn/re...LTexture.c

Also, if you have a choice of image format, I definitely wouldn't recommend TIFF. PNG and JPEG should be all you need for 99.9% or your images.

- Alex Diener
Quote this message in a reply
Moderator
Posts: 522
Joined: 2002.04
Post: #4
Keith's QuickTime code works fine, but here's an alternative:

http://openil.sourceforge.net/

-Jon
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #5
Good luck, man.

Time is running out!
Quote this message in a reply
Member
Posts: 40
Joined: 2004.12
Post: #6
Wow, devIL is back under development, thats great!

Anyway, check out SDL_image if you are doing your program in C/C++ and using SDL.

It's pretty straight-forward.

Jericho
Quote this message in a reply
Puzzler183
Unregistered
 
Post: #7
seven Wrote:Anyway, check out SDL_image if you are doing your program in C/C++ and using SDL.

It's pretty straight-forward.

Pretty straightforward is a bit of an understatement - it's cross platform and a single call to IMG_LoadImage will load just about any format you can think of - TIFF, BMP, JPG, GIF, etc.
Quote this message in a reply
Member
Posts: 156
Joined: 2002.11
Post: #8
Damn, I made that previous post to the wrong thread. I tried to delete it but it won't work. Please, just disregard it.

Time is running out!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenAL - Ogg files vs Caf files Fred9000 8 14,496 Aug 23, 2011 08:01 PM
Last Post: ipeku
  OpenGL Preferred Image Format (BMP, TIFF, ect) Justin Brimm 7 5,067 Apr 18, 2006 03:28 PM
Last Post: arekkusu
  error when loading too many bmp files petr6534 1 2,858 Oct 20, 2004 05:08 PM
Last Post: OneSadCookie
  PNG Files only Loading Some of The Time Nick 6 3,987 Aug 29, 2004 01:08 PM
Last Post: arekkusu
  Loading TGA files to openGL Textures Joseph Duchesne 23 13,491 Aug 25, 2004 01:20 AM
Last Post: NCarter