Exemple #1
0
 public Composition(string refSkeletonPath)
 {
     transform   = new Matrix();
     editingUnit = new ComposedUnit();
     an          = SkeletonAnnotation.Load(refSkeletonPath, null);
     if (an == null)
     {
         an = new SkeletonAnnotation(null);
     }
 }
Exemple #2
0
        public static SkeletonAnnotation OpenRefSkeleton(string filepath, Bitmap refSkeletonBmp)
        {
            filepath = Path.GetFullPath(filepath);
            string root = Path.GetDirectoryName(filepath);

            if (!File.Exists(filepath))
            {
                return(null);
            }

            return(SkeletonAnnotation.Load(filepath, refSkeletonBmp));
        }
Exemple #3
0
 public void Open(string filepath)
 {
     an = SkeletonAnnotation.Load(filepath, an.bmp);
 }