开发者

Is it a Bitmap or MetaFile?

Given a Stream that I know will be a picture, is there a way to program开发者_JS百科matically determine if it is a Bitmap or a MetaFile when pulled from Image.FromStream(mystream)? Like a flag or something.

Environment: .NET, System.Drawing, C#/VB


Image.RawFormat


I think, by reading the first few bytes one sould be able to identify. LIke II* are the byes in tiff file. ‰PNGin png, BM in bmp files

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜