Exemple #1
0
 private static extern int XpmReadFileToPixmap(IntPtr display, IntPtr d, string filename, out IntPtr pixmap_return, out int shapemask_return, ref XpmAttributes attributes);
Exemple #2
0
        public bool ReadPixmapFromData(XWindow d, string[] data)
        {
            IntPtr pixmap_return;
              int shapemask_return;

              XpmAttributes attr = new XpmAttributes ();
              attr.valuemask = XPixmapValueMask.XpmSize;

              if (XpmCreatePixmapFromData (display.Handle, d.Handle, data, out pixmap_return, out shapemask_return, ref attr) == 0) {
            Handle = pixmap_return;
            mask = shapemask_return;
            width = attr.width;
            height = attr.height;

            //Console.WriteLine ("PIXMAP: W={0} | H={1}", width, height);

            success = true;

            return true;
              }

              return false;
        }
Exemple #3
0
 private static extern int XpmCreatePixmapFromData(IntPtr display, IntPtr d, string[] data, out IntPtr pixmap_return, out int shapemask_return, ref XpmAttributes attributes);
Exemple #4
0
        public bool ReadFileToPixmap(XWindow d, string filename)
        {
            IntPtr pixmap_return;
              int shapemask_return;

              XpmAttributes attr = new XpmAttributes ();
              attr.valuemask = XPixmapValueMask.XpmSize;

              if (XpmReadFileToPixmap (display.Handle, d.Handle, filename, out pixmap_return, out shapemask_return, ref attr) == 0) {
            Handle = pixmap_return;
            mask = shapemask_return;
            width = attr.width;
            height = attr.height;

            success = true;

            return true;
              }

              return false;
        }