FBA The Creator
http://www.fbacreator.com/fbaforum/

read images from external resources
http://www.fbacreator.com/fbaforum/viewtopic.php?f=5&t=149
Page 1 of 1

Author:  ckl_88 [ Sun Mar 01, 2009 10:04 pm ]
Post subject:  read images from external resources

If I write a c++ dll that downloads an image from the internet and writes it into the FBA program directory, is it possible for FBA to read this image as an
external resource perhaps and display it on the screen?

Thanks.

Author:  evilmaio [ Mon Mar 02, 2009 8:30 am ]
Post subject:  Re: read images from external resources

ckl_88 wrote:
If I write a c++ dll that downloads an image from the internet and writes it into the FBA program directory, is it possible for FBA to read this image as an
external resource perhaps and display it on the screen?

Thanks.


Actually is not possible, because FBA imports PNG/JPG images and then repack them using an internal compressed format.

Author:  Root [ Sun Sep 27, 2009 9:39 pm ]
Post subject:  Re: read images from external resources

Opening External images posible and not only PNG and JPG. If you want to use your c++ dll for GETing then you'll need decoding script to convert readed data from ext.binary, in to width, height, and data(pixels) according to mask of image format. Advantage of this is ability to use not only PNG and JPG images but allso BMP, ICO, PCX, GIF, and any other that you may need.
But you can use Fba's TCP or UDP sockets to download images from internet dirrectly to your app and inside of it, image code should be decoded. And internal sockets is not so hard as it seems from first look, I even used TCP in project to download protocols of other program via net, and UDP in my FbaGame for multiplayer (with PING and all other cool stuff... :mrgreen:).
Be Well.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/