Exemplo n.º 1
0
        public static Document Create(System.IntPtr data, int size)
        {
            global::System.IntPtr cPtr = PSDParserPINVOKE.Document_Create(data, size);
            Document ret = (cPtr == global::System.IntPtr.Zero) ? null : new Document(cPtr, true);

            return(ret);
        }
Exemplo n.º 2
0
 public void Extend(Rect newArea)
 {
     PSDParserPINVOKE.Layer_Extend(swigCPtr, Rect.getCPtr(newArea));
     if (PSDParserPINVOKE.SWIGPendingException.Pending)
     {
         throw PSDParserPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
        public uint GetDepth()
        {
            uint ret = PSDParserPINVOKE.Document_GetDepth(swigCPtr);

            if (PSDParserPINVOKE.SWIGPendingException.Pending)
            {
                throw PSDParserPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 4
0
        public int GetLayerCount()
        {
            int ret = PSDParserPINVOKE.Document_GetLayerCount(swigCPtr);

            if (PSDParserPINVOKE.SWIGPendingException.Pending)
            {
                throw PSDParserPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        public string GetName()
        {
            string ret = System.Runtime.InteropServices.Marshal.PtrToStringUni(PSDParserPINVOKE.Layer_GetName(swigCPtr));

            if (PSDParserPINVOKE.SWIGPendingException.Pending)
            {
                throw PSDParserPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 6
0
        public Rect GetRect()
        {
            Rect ret = new Rect(PSDParserPINVOKE.Layer_GetRect(swigCPtr), true);

            if (PSDParserPINVOKE.SWIGPendingException.Pending)
            {
                throw PSDParserPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 7
0
        public Layer GetLayer(int index)
        {
            global::System.IntPtr cPtr = PSDParserPINVOKE.Document_GetLayer(swigCPtr, index);
            Layer ret = (cPtr == global::System.IntPtr.Zero) ? null : new Layer(cPtr, true);

            if (PSDParserPINVOKE.SWIGPendingException.Pending)
            {
                throw PSDParserPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 8
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 PSDParserPINVOKE.delete_Rect(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
     }
 }
Exemplo n.º 9
0
 public Rect() : this(PSDParserPINVOKE.new_Rect(), true)
 {
 }
Exemplo n.º 10
0
 public Document() : this(PSDParserPINVOKE.new_Document(), true)
 {
 }
Exemplo n.º 11
0
 public System.IntPtr GetData()
 {
     return(PSDParserPINVOKE.Layer_GetData(swigCPtr));
 }
Exemplo n.º 12
0
 public Layer() : this(PSDParserPINVOKE.new_Layer(), true)
 {
 }