Citerar Roger <[EMAIL PROTECTED]>: > Hello, > > I'm trying to generate a single texture file from a few .png images that > may be provided by the user. I can't seem to find success on how to do > that with the Image routines. I have loaded in a 256x64 image and then > doubled its width via img->setWidth(...) in hopes of appending another > 256x64 image beside the original and saving the end result to file > (which is later referenced by a 3ds file). I'm trying to use:
Try using the Image::set() function first (perhaps with it's own begin/endedit), specifying the first three parameters. That ought to cause a reallocation of the data, which is what you want. (I'm on vacation, so I can't check the source for specifics, but using setWidth () only won't give you what you expect, as you've noticed already. :) -- /Marcus ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
