public Thumbnail(Texture2D _tex, string _ImageLoc, int _width, int _height, string _date, string _country) { m_Thumb = _tex; m_Width = _width; m_Height = _height; m_Country = _country; if (_date == "") { m_Date = new DateTime(1970, 1, 1); } else { m_Date = DateFormat.DateTime(_date); } }
public Thumbnail(Texture2D _Thumb, string _ImageLoc, string _country, string _date) { m_Thumb = _Thumb; m_ImageLoc = _ImageLoc; m_Width = _Thumb.width; m_Height = _Thumb.height; m_Country = _country; if (_date == "") { m_Date = new DateTime(1970, 1, 1); } else { m_Date = DateFormat.DateTime(_date); } }
public Thumbnail(byte[] _Thumb, string _ImageLoc, int _width, int _height, string _date, string _country) { m_Thumb = new Texture2D(_width, _height); m_Thumb.LoadImage(_Thumb); m_ImageLoc = _ImageLoc; m_Width = _width; m_Height = _height; m_Country = _country; if (_date == "") { m_Date = new DateTime(1970, 1, 1); } else { m_Date = DateFormat.DateTime(_date); } }