几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】how can we get the information of image9jpg, tiff0 which imp (http://www.dimcax.com/hust/showthread.php?t=16569)

yang686526 2009-05-05 12:25 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 05:44 PM.