getImageReporter
Class: mlreportgen.report.TitlePage
Package: mlreportgen.report
Get title page image reporter
Syntax
reporter = getImageReporter(tp)
Description
returns a reporter that the reporter
= getImageReporter(tp
)TitlePage
reporter (tp
)
uses to format the image specified by the Image
property. You use
getImageReporter
to customize the image position and
alignment.
Input Arguments
Output Arguments
Examples
Use Nondefault Title Page Image Style
Create a style for the image on your title page that differs from the default.
Before you run this example, create a template file named
MyTitlePageTemplate
and customize its
TitlePageImage
style. Then, use getImageReporter
and the TemplateSrc
property to use your
template.
import mlreportgen.report.* rpt = Report(); tp = TitlePage(); tp.Image = 'myImage.jpg'; tp.Image = getImageReporter(tp); tp.Image.TemplateSrc = 'MyTitlePageTemplate'; add(rpt,tp);
Version History
Introduced in R2017b