how i can pass Image Array object in createImage(Image image, int x, int y, int width, int height, int transform) method.
Printable View
how i can pass Image Array object in createImage(Image image, int x, int y, int width, int height, int transform) method.
Pass all elements one by one to your method because it can handle one image only, not an array of them. A loop comes to mind ...
kind regards,
Jos
thanks i will do this.
sorry i m new in j2me .i m not capable to do this can u give any idea or example.
private Image[] Cri_image;//declear
Cri_image = new Image[4];
pimgTemp = Image.createImage(m_imgAnim,10,0,m_iFrameWidth,iFrameHeight,Sprite.TRANS_NONE );
how can use i variable inside Image.createImage();
I don't understand what you mean by that. Please ask a proper question and don't make us guess.
kind regards,
Jos
u said that i use this logic-
Image[] yourArray= ...;
for (Image i : yourArray)
createImage(i, ... );
but how can use i variable inside Image.createImage();