ArticleNewPicture Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:14

Description

Adds to a page a image that do not exist in the database.

Such picture will be created as dummy when it is referenced by a new article and the article is saved or when the function TxtSetReference is called with an article already existing in the database.

Syntax

Page.ArticleNewPicture(TypeId)

TypeId        

Required. Id of the photo type.

Context

Page designer

Bug fixes

GN4-1388: When using Page.ArticleNewPicture on an image in a paginated article, the page could no be reopened after being saved and closed. Fixed in version 2.0.

All image related commands

AddImageEx, ArticleNewPicture, ImgInsert, ImgInsertId, ImgInsertType, ImgNewDummyEx

ImgCrop, ImgSetCrop, GetImgCropHeight, GetImgCropLeft, GetImgCropTop, GetImgCropWidth, GetImgHeight, GetImgWidth

ImgZoom, ImgZoomPct, ViewZoomImage, GetImgZoomPctX, GetImgZoomPctY

GetSelectedImgId, GetSelectedImgDummy,

ImgGetColor, ImgSetColor, ImgGetFlag, ImgSetFlag, ImgImportPath Method

ImgTrace, ImgTraceDlg, ImgTraceEx

ImgUpdate, TxtSelectReference, ViewShowImg

All object creation related commands

AddBoxEx, AddElliEx, AddHRuleEx, AddImageEx, AddLibObj, AddLibObjId, AddVRuleEx, ArticleNewPicture

EditPaste, EditPasteAttrib, EditPasteEx, ImgInsert, ImgInsertId, ImgInsertType, ObjDuplicate