Jump to content
Nokioteca Forum

Unable To Get Contact Picture


rselva123
 Share

Recommended Posts

Hello Sorry I don't know Italian. Iam trying to get image of contact and draw on screen but I get only a blue rectangle instead of image ( I checked manually and there is an image linked to the contact). Could someone check what is the problem?Thanks in advance M-shell code below:

use sms, contacts,graph;
snd='01236790183';
   id=contacts.findnr(snd, 10);
   if len(id)#0 then name=contacts.get(id[0], "pict")[0]
    else name=id;end;
i=graph.icon([name]);print  len(id);
// get its size
graph.size(i);
// draw it
//graph.put(20,20,i);
// copy the icon
i2=graph.icon(i);
// scale the copy into a 100x100 square and draw it
graph.size(i2,100,100);
graph.put(20,120,i2);
graph.show();sleep(5000);

Modificato da rselva123
Link to comment
Condividi su altri siti

  • 1 anno dopo...

Please sign in to comment

You will be able to leave a comment after signing in



Accedi Ora
 Share

×
×
  • Crea Nuovo...

Informazione Importante

Questo sito utilizza i cookie per analisi, contenuti personalizzati e pubblicità. Continuando la navigazione, accetti l'utilizzo dei cookie da parte nostra | Privacy Policy