Exemple #1
0
        public void InitNew(int width, int height, ImageDataFORMAT format)
        {
            int[] arg = { width, height, (int)format };
            fixed(int *ptr = arg)
            {
                IntPtr retval = IntPtr.Zero;

                GameEngine.InvokeMemberFn(m_instanceId, "CreateNew", (IntPtr)ptr, out retval);
            }

            RefreshCachedProperties();
        }
Exemple #2
0
 public void Convert(ImageDataFORMAT format)
 {
     GameEngine.SetObjectProperty(TypeId, m_instanceId, ConvertId, (uint)format);
     RefreshCachedProperties();
 }
Exemple #3
0
 public void InitNew(int width, int height, ImageDataFORMAT format)
 {
     int[] arg = { width, height, (int)format };
     fixed (int* ptr = arg)
     {
         IntPtr retval = IntPtr.Zero;
         GameEngine.InvokeMemberFn(m_instanceId, "CreateNew", (IntPtr)ptr, out retval);
     }
     RefreshCachedProperties();            
 }
Exemple #4
0
 public void Convert(ImageDataFORMAT format)
 {
     GameEngine.SetObjectProperty(TypeId, m_instanceId, ConvertId, (uint)format);
     RefreshCachedProperties();
 }