lm_pixelsize

Get pixelsize of frame


CALL:

   pixelsize = lm_pixelsize(hframe)
  

INPUT:

   hframe: frame handle
  

OUTPUT:

  pixelsize: vector [height, width] with the pixelsize of the frame
  
  EXAMPLE: position figure in the middle of the screen
   HWIN = figure;
   hmain = lm_createframe(HWIN,'splithor',0,'pixelsize',[300 200]);
   lm_resize(HWIN);
   pixelsize = lm_pixelsize(hmain);
   scrsz = get(0,'screensize');
   mid = scrsz(3:4)/2;
   set(HWIN,'pos',[mid 0 0]+[-pixelsize/2 pixelsize]);