コード例 #1
0
 public bool Open(Stream fs)
 {
     Header    = MarshalUtil.ReadStruct <IDBEHeader>(fs);
     SmallIcon = ImageUtil.ReadImageFromStream(fs, 24, 24, ImageUtil.PixelFormat.RGB565);
     LargeIcon = ImageUtil.ReadImageFromStream(fs, 48, 48, ImageUtil.PixelFormat.RGB565);
     return(true);
 }
コード例 #2
0
 public bool Open(Stream fs)
 {
     Header = MarshalUtil.ReadStructBE <IDBEHeader>(fs);
     Image  = LoadImage(fs);
     return(true);
 }
コード例 #3
0
 public override string Publisher(Localization localization)
 {
     return(MarshalUtil.CleanInput(Encoding.BigEndianUnicode.GetString(this.Header.Descriptions[(int)localization].Publisher)));
 }
コード例 #4
0
 public override string SecondTitle(Localization localization)
 {
     return(MarshalUtil.CleanInput(Encoding.Unicode.GetString(this.Header.Descriptions[(int)localization].SecondTitle)));
 }