Languages

Menu
Sites
Language
convert bitmap to bytebuffer
Edited by: Slawek Kowalski on 10 Nov, 2013

Responses

2 Replies
Slawek Kowalski

It seems somehow my post was not sent correctly.

Hi

 

How to convert Bitmap to ByteBuffer without conversion to any image format like PNG or JPG?

I would like to have raw bitmap data like as if produced by camera preview.

I saw methods from Tizen::Media::Image but each method converts bitmap to buffer with

selected image format as one of parameters.

 

Regards,

slaw

Alex Ashirov

Hi,

It seems you need this one:

Tizen::Base::ByteBuffer * DecodeToBufferN (const Tizen::Base::String &srcImagePath, Tizen::Graphics::BitmapPixelFormat pixelFormat, int &imageWidth, int &imageHeight) const

It doesn't require the ImageFormat and there are no any conversions to other formats.