Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Bitmap Widget can show.
code:
static int Initialize__robcam0001_ZoomTBitmap(IShell *pIShell, IWidget *po)
{
IBitmap *pIBitmap = NULL;
pIBitmap = ISHELL_LoadBitmap(pIShell, "dog.bmp");
IWIDGET_SetBitmap(po, pIBitmap);
RELEASEIF(pIBitmap);

Image Widget can not showing.
code:
static int Initialize__robcam0001_ZoomTBitmap(IShell *pIShell, IWidget *po)
{
IImage *pIImage;
pIImage = ISHELL_LoadImage(pIShell,"dog.bci");
IWIDGET_SetImage(po,pIImage);
RELEASEIF(pIImage);

why??

hi gooddeal, have you tried to set the extent of the image widget?

hi gooddeal, have you tried to set the extent of the image widget?

set the extent of the image widget???
how to do that???
i am a beginner,please tell me. thanks very much.

set the extent of the image widget???
how to do that???
i am a beginner,please tell me. thanks very much.

try something like this
Image *pIImage;
WExtent extent;
extent.height = 100;
extent.width = 100;
pIImage = ISHELL_LoadImage(pIShell,"dog.bci");
IWIDGET_SetImage(po,pIImage);
IWIDGET_SetExtent(po, &extent);

try something like this
Image *pIImage;
WExtent extent;
extent.height = 100;
extent.width = 100;
pIImage = ISHELL_LoadImage(pIShell,"dog.bci");
IWIDGET_SetImage(po,pIImage);
IWIDGET_SetExtent(po, &extent);

I have done like this.
code :
IImage *pIImage;
pIImage = ISHELL_LoadImage(pIShell,"dog.bci");
IWIDGET_SetImage(po,pIImage);
{
WidgetPos pos;
pos.x = 220;
pos.y = 3;
pos.bVisible = 1;
{
WExtent we;
we.width = 16;
we.height = 16;
IWIDGET_SetExtent(po, &we);

IXYCONTAINER_Insert(pMe->robcam0001_SettingViewXY, po, WIDGET_ZNORMAL, &pos);}
but it still can not show..

I have done like this.
code :
IImage *pIImage;
pIImage = ISHELL_LoadImage(pIShell,"dog.bci");
IWIDGET_SetImage(po,pIImage);
{
WidgetPos pos;
pos.x = 220;
pos.y = 3;
pos.bVisible = 1;
{
WExtent we;
we.width = 16;
we.height = 16;
IWIDGET_SetExtent(po, &we);

IXYCONTAINER_Insert(pMe->robcam0001_SettingViewXY, po, WIDGET_ZNORMAL, &pos);}
but it still can not show..

where are loading this widget to?

where are loading this widget to?

The whole program is very complicated. i have no idea.
can you give me a successful sample?
thanks you very much.

The whole program is very complicated. i have no idea.
can you give me a successful sample?
thanks you very much.

look at the calculator example, it's a good start and where I learned most of my stuff from :D

look at the calculator example, it's a good start and where I learned most of my stuff from :D

thanks very much ,but where can i get the example.
In my program , bitmap widget and image widget are both be used, it does not matter?

thanks very much ,but where can i get the example.
In my program , bitmap widget and image widget are both be used, it does not matter?

the calculator example should have been installed when you installed the sdk. I don't recall there being an image or bitmap widget there but it's a good place to get to know how this sdk works.

the calculator example should have been installed when you installed the sdk. I don't recall there being an image or bitmap widget there but it's a good place to get to know how this sdk works.

I use the sdk named BREW_SDK315EN.
it has not calculator example.
what is your sdk??

I use the sdk named BREW_SDK315EN.
it has not calculator example.
what is your sdk??

SDK 315 as well, there should be some examples with the UI SDK you installed. If not I've zipped up the calculator example

SDK 315 as well, there should be some examples with the UI SDK you installed. If not I've zipped up the calculator example

thank you very much.
my sdk is uninstall version.
it lacks of some function and example.
can you tell me where can I get install version.
is it for free??

thank you very much.
my sdk is uninstall version.
it lacks of some function and example.
can you tell me where can I get install version.
is it for free??

you can get it for free if you are a BREW developer
https://brewx.qualcomm.com/brew/sdk...sp?page=dx/buiw

you can get it for free if you are a BREW developer
https://brewx.qualcomm.com/brew/sdk...sp?page=dx/buiw