查看单个帖子
旧 2009-05-05, 12:25 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how can we get the information of image9jpg, tiff0 which imp

how can we get the information of image(jpg, tiff) which imp
how can we get the information of image(jpg, tiff) which imported in dwg?
hi,
if we want open image file which imported dwg file, the library support bmp file and the other (tif,jpg,gif etc) is ours share.
we find example of load jpg file, in example files, there are behind sentence structure.
慜dexgirasterimageptr pexrastim = odrxobjectimpl<odexgirasterimage>::createobject(); ?br /> (sample : extensions/exservices/exgirasterimage)
we define this sentence as 搼pexrastim?is mated and store information about image with special format.?
but we don抰 know this 憇pecial format?
we should support tif, jpg and gif file.
how can we these three files each import to dwg?
in order to support various raster formats you need to provide your implementation of odgirasterimage interface. actually what you need is to convert supported by your implementation raster formats to bmp.
extensions/exservices/exgirasterimage is a sample implementation which can be compiled conditionally to use free jpeg6b library or snowbound.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)