image scaling settings
Created by: hnistlzy
type formatPicture struct {
FPrintsWithSheet bool json:"print_obj"
FLocksWithSheet bool json:"locked"
NoChangeAspect bool json:"lock_aspect_ratio"
OffsetX int json:"x_offset"
OffsetY int json:"y_offset"
XScale float64 json:"x_scale"
YScale float64 json:"y_scale"
Hyperlink string json:"hyperlink"
HyperlinkType string json:"hyperlink_type"
Positioning string json:"positioning"
}
// formatShape directly maps the format settings of the shape.
type formatShape struct {
Type string json:"type"
Width int json:"width"
Height int json:"height"
Format formatPicture json:"format"
Color formatShapeColor json:"color"
Paragraph []formatShapeParagraph json:"paragraph"
}
虽然在源码中看到了有 width ,height选项,但这个是formatShape而不是formatPicture,所以AddPicture method中无法设置图片大小