| 
    KiCad PCB EDA Suite
    
   | 
 
#include <unordered_map>#include <geometry/shape_poly_set.h>#include <wx/image.h>#include <lib_symbol.h>Go to the source code of this file.
Functions | |
| std::unordered_map< uint32_t, SHAPE_POLY_SET > | ConvertImageToPolygons (wxImage img, VECTOR2D pixelScale) | 
| void | ConvertImageToLibShapes (LIB_SYMBOL *aSymbol, int unit, wxImage img, VECTOR2D pixelScale, VECTOR2D offset) | 
| void ConvertImageToLibShapes | ( | LIB_SYMBOL * | aSymbol, | 
| int | unit, | ||
| wxImage | img, | ||
| VECTOR2D | pixelScale, | ||
| VECTOR2D | offset ) | 
Definition at line 109 of file gfx_import_utils.cpp.
References LIB_SYMBOL::AddDrawItem(), color, ConvertImageToPolygons(), FILLED_WITH_COLOR, LIB_SYMBOL::GetDrawItems(), LAYER_DEVICE, POLY, and MULTIVECTOR< T, FIRST_TYPE_VAL, LAST_TYPE_VAL >::sort().
Referenced by SCH_EASYEDAPRO_PARSER::ParseSymbol(), and SCH_EASYEDA_PARSER::ParseSymbolShapes().
| std::unordered_map< uint32_t, SHAPE_POLY_SET > ConvertImageToPolygons | ( | wxImage | img, | 
| VECTOR2D | pixelScale ) | 
Definition at line 34 of file gfx_import_utils.cpp.
References SHAPE_POLY_SET::AddOutline(), chain, color, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ConvertImageToLibShapes().