示例#1
0
        public static DDPicture Wrapper(Func <int> getHandle, int w, int h)
        {
            DDPicture.PictureInfo info = new DDPicture.PictureInfo()
            {
                Handle = -1,
                W      = w,
                H      = h,
            };

            return(new PictureWrapper()
            {
                Func_GetHandle = getHandle,
                Info = info,
            });
        }
示例#2
0
 public static void ReleaseInfo(DDPicture.PictureInfo info)
 {
     ReleaseGraphicHandle(info.Handle);
 }