Load SIO2image from CGImage/UIImage
2 posters
Load SIO2image from CGImage/UIImage
Hi guys,
A questions related to performans:
I have CGImage and want to use it as SIO2strem. Do I have to convert it to NSData and then:
Is there a shorter and especially quicker way?
Thank you
Konstruktor
A questions related to performans:
I have CGImage and want to use it as SIO2strem. Do I have to convert it to NSData and then:
- Code:
SIO2stream *_SIO2stream = sio2StreamInit( name );
_SIO2stream->size = [data length];
_SIO2stream->buf = new unsigned char [_SIO2stream->size + 1];
[data getBytes:_SIO2stream->buf length: _SIO2stream->size];
_SIO2stream->buf[_SIO2stream->size] = 0;
_SIO2stream->cur = _SIO2stream->buf;
SIO2image *_SIO2image = sio2ImageInit( name );
sio2ImageLoad( _SIO2image, _SIO2stream );
Is there a shorter and especially quicker way?
Thank you
Konstruktor
konstruktor- Posts : 6
Join date : 2009-03-13
Re: Load SIO2image from CGImage/UIImage
Search a bit on this forum I already post the code to do that...
Similar topics
» Manipulating RAW pixels from UIImage
» how to paste a small images inside SIO2widget's SIO2image
» SIO load checking
» Load times
» Load image from net into SIO2material
» how to paste a small images inside SIO2widget's SIO2image
» SIO load checking
» Load times
» Load image from net into SIO2material
Permissions in this forum:
You cannot reply to topics in this forum