语言

Menu
Sites
Language
Access to the byte[] of an ImageView or create ImageView using byte[]

Hi,

I needed to load some images in order to work with the pixel data but also render the images. 

I was able to load my images and render it using ImageView but I found not way to access to the byte[].

I tried to use the C# Bitmap from system.drawing but It's not supported for tizen.

I choose to use my own loader using a wrapper around native code using libjpeg, libpng, zlib. I can now load *.png, *.jpeg, *,tga. But unfortunately impossible to render it inside an image view.

So in my current app, the images is load twice one for access to the date the other for render it, not the best with device without too much memory.

Is there any otherway to be able to render an image and acess to the byte[] data ??

PS: I also had an issue with libjpeg. I was using jpeg 90. If I run my loader in native code it's working fine. But if I use it from C# via wrapper, I have an issue because some of the header jpeg are looking for version 80. I suspect when I use C# some library load another version of libjpeg (version 8) and with my library for C# there is some kind of mismatch. I fix my issue just by using the libjpeg 8 in my native loader.

 


 

 

 

 

 

 

 

响应

3 回复
Armaan-Ul- Islam

You stated about C# Bitmap from system.drawing, Would you look for any PCL version for that, Tizen.NET Supports PCL As far as I Know.

You may look for Xamarin.Forms solution for the scenario on Internet. Cross Platform Xamarin.Forms solution may work for Tizen.

Xamarin.Forms Forum: https://forums.xamarin.com/categories/xamarin-forms

Anthony Liot

Unfortunately, I cannot use Xamarin. So so far I am mainly use only NUI for the interface.

I really thing the C# Tizen interface is missing a lot of basic feature.
 

Armaan-Ul- Islam

Can't Disagree.

I hope Tizen Platform developers take input from discussions on Developers Forum for their future plan.

Still, This is just the beginning.

 

[Additional] Post- Xamarin Plugins - Tizen.NET support