l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 7: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2004 May 14 10:55

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Success with fltk and SDL_image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Success with fltk and SDL_image



Hi all:

Just a question:

Has anyone used SDL_image to do scaling and rotation?  If so, is there anything
that I could use to do basic image manipulations?  I am looking for code
examples/basic theories so that I can start off down a (more or less)
reasonable path...

I had an application that used fltk_images and libtiff to open images.  It was
large, unwieldy, and unfortunately, a bit slow.  SDL_image was a bit faster b/c
(at least, this is what I _think_... I'm still such a noob) of the way that I
allocated the buffer for the image:
(img_w)*(img_h)*(sizeof(current_color_depth)).  So if you had a 24bit depth
color display, and a B/W image, I allocate enough space for a 24bit color...
not the right thing...  It would have been tough to recode (for some reason
that I can't recall), so I decided to try something different...  

Now, SDL does the work for me, and just leaves me with a surface... awesome.

So if anyone has any hints/tips/tricks/caveats on SDL surface manipulation, I
would love any tidbits that might float my way...  and if anyone is interested
in seeing my code (yea, I have the coding style of an 8 year old), just don't
laugh when you do.... (write me off list and I'll send a copy)

--thanks

jan

=====
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
EDUCATION, n. That which discloses to the wise and disguises from the
foolish their lack of understanding.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.