Esempio n. 1
0
 public IsetFileDataParserV5(NyARNftIsetFile.ReferenceImage i_src_img, float[] i_sub_dpis)
 {
     this.image       = ArrayUtils.toByteArray_impl(i_src_img.img);
     this.image_dpi_x = (float)i_src_img.dpi;
     this.image_dpi_y = (float)i_src_img.dpi;
     this.image_size  = new NyARIntSize(i_src_img.width, i_src_img.height);
     this.image_unit  = 1;
     this.sub_dpis    = i_sub_dpis;
     this.num_of_iset = i_sub_dpis.Length + 1;
     return;
 }
 public IsetFileDataParserV5Raw(NyARNftIsetFile.ReferenceImage i_src_img, float[] i_sub_dpis)
 {
     this.image_width  = i_src_img.width;
     this.image_height = i_src_img.height;
     this.image        = ArrayUtils.toByteArray_impl(i_src_img.img);
     this.dpis         = new float[i_sub_dpis.Length + 1];
     this.dpis[0]      = (float)i_src_img.dpi;
     for (int i = 0; i < i_sub_dpis.Length; i++)
     {
         this.dpis[i + 1] = i_sub_dpis[i];
     }
     return;
 }