开发者

Resize image and send to server in Air app

开发者 https://www.devze.com 2023-02-21 20:44 出处:网络
I\'m trying to build an Air application where a user can drop in an image. That image needs to resize if it\'s bigger than 1024px 1024px.

I'm trying to build an Air application where a user can drop in an image. That image needs to resize if it's bigger than 1024px 1024px.

What's the best practice for resizing an image in Air development? And what's the best practice if I want to send this to codeigniter amf server in Air 2.0, bytearray forma开发者_运维知识库t?

Thank you


For resizing the image see What is the best way to resize a BitmapData object? .
And if you want to send it quickly, i suggest to encode the image to PNG/JPG with ascorelib

0

精彩评论

暂无评论...
验证码 换一张
取 消