Raster image wrappers provide a way to modify raster image data without modifying the original raster image. Each raster image wrapper stores a smart pointer to the original image and can get any data from the original image and return it with or without modifications. Actually, by using raster image wrappers we can construct a conveyor for multi-pass image processing.
If you are new to Teigha and want to try its features without a login and trial license agreement, you can download Teigha Viewer — a free application that illustrates Teigha features. Download Teigha Viewer from this page. Choose the version that fits your requirements (operating system, etc.).
Teigha vectorization framework provides ability to clip geometry inside rendered scene, using OdGiOrthoClipperEx conveyor node which is always available inside default geometry vectorization conveyor.
Sometimes developers want to convert some text from multi-byte coding to Unicode or UTF and back. For this purpose, the OdString and OdAnsiString classes may be used. Starting with Teigha version 4.3.0, CP_UTF_8 coding was included in the supported coding list.
For example, the following array of characters in UTF-8 coding is “Test string” in Russian:
One of the new directions for Teigha is the cloud. With Teigha Cloud, people can work with drawings remotely from any place — home, office, restaurant.
Teigha Cloud consists of the following architecture:
The OdGiRasterImage interface gives the ability to implement raster image creation from various types of source data in a few steps, and the resulting raster image will be accepted by all image processing functionality, similar to a raster image loaded from file source. In this article, we will create a gradient image from scratch.
A question we’re often asked is: How do I modify raster image data in Teigha? Sometimes a developer is confused by the absence of raster image editing functions in the OdGiRasterImage API, which contains only raster image data getters. This article shows how raster images can be modified after loading.
Sometimes Teigha subscribers ask: How do I export to a .pdf file only a certain part of a drawing instead of the whole drawing? Maybe it is not obvious because there is a default option ZoomToExtents in the PDF Export settings, and the same option is set by default in the PDFExportDialog of the OdaMfcApp sample application.