CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3198 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 7678:

Question CAD 
 %  platform  category 
Q - question

Converting raster image to a matrix of pixels inside the DWG.

A - answer One of the functions of the AutoCAD add-on application CADstudio ImgConvert (see Download) is the conversion of raster images to individual pixels stored inside the DWG file. So you can digitize small pictures, which are difficult to vectorize (logo, photo) and insert them to the drawing more effectively and more reliably than OLE objects. All AutoCAD raster formats are supported (GIF, PNG, JPG, PCX, TIFF...).

See e.g. the sample photo heidi.jpg (100x75px). Attach it to your drawing with the IMAGEATTACH command. Load the ImgConvert application(NETLOAD) and run the command ImgConvert from the ribbon "CAD Studio". Choose the bitmap file and confirm the Color mode. The image will be converted to a block containing approx. 7600 individual pixels (solids). The size of your DWG file will grow about 190kB. Similarly you can also directly load/insert the image file as a pixel matrix - see the ImgInFile command.

Here is a comparison of a drawing with the original JPG image (left) and its copy converted to an internal block (right).

Compare images

This is a detail view of the converted image (one pixel selected):

Pixel matrix

You can also download the converted DWG drawing "Heidi in pixels" from the Block catalog.
ACAD2012ACAD2011ACAD2010
100% *  CAD 
9.12.2010    10828x  
Comments   Tell a friend
applies to: AutoCAD 2012 · AutoCAD 2011 · AutoCAD 2010 ·

See also:
Tip 7667:Automatically generated QR codes for DWG drawings.
Tip 5535:An effective way to bind raster images inside DWG files.
Tip 31:How to draw barcode in AutoCAD drawings?


Back   All CAD Tips All CAD tips&tricks

Convert 3D model from 3ds Max to Inventor. « | » Disable ref-editing objects that are not in the working set.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist