A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/apps-script/reference/slides/page-background below:

Class PageBackground | Apps Script

Class PageBackground

Stay organized with collections Save and categorize content based on your preferences.

PageBackground

Describes the page's background

Methods Method Return type Brief description getPictureFill() PictureFill Get the stretched picture fill of this background, or null if the background fill type is not PageBackgroundType.PICTURE. getSolidFill() SolidFill Get the solid fill of this background, or null if the background fill type is not PageBackgroundType.SOLID. getType() PageBackgroundType Get the type of this page background. isVisible() Boolean Whether the background is visible. setPictureFill(blobSource) void Sets an image from the specified image blob as the page background. setPictureFill(imageUrl) void Sets the image at the provided URL as the page background. setSolidFill(color) void Sets the solid fill to the given Color. setSolidFill(color, alpha) void Sets the solid fill to the given alpha and Color. setSolidFill(red, green, blue) void Sets the solid fill to the given RGB values. setSolidFill(red, green, blue, alpha) void Sets the solid fill to the given alpha and RGB values. setSolidFill(hexString) void Sets the solid fill to the given hex color string. setSolidFill(hexString, alpha) void Sets the solid fill to the given alpha and hex color string. setSolidFill(color) void Sets the solid fill to the given ThemeColorType. setSolidFill(color, alpha) void Sets the solid fill to the given alpha and ThemeColorType. setTransparent() void Sets the background to transparent. Detailed documentation getPictureFill()

Get the stretched picture fill of this background, or null if the background fill type is not PageBackgroundType.PICTURE.

Return

PictureFill

Scripts that use this method require authorization with one or more of the following scopes:

getSolidFill()

Get the solid fill of this background, or null if the background fill type is not PageBackgroundType.SOLID.

Return

SolidFill

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

getType()

Get the type of this page background.

Return

PageBackgroundType

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

isVisible()

Whether the background is visible.

Return

Boolean

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setPictureFill(blobSource)

Sets an image from the specified image blob as the page background. The image is stretched to match the dimensions of the page.

Inserting the image fetches it from the BlobSource once and a copy is stored for display inside the presentation. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF format.

Parameters Name Type Description blobSource BlobSource The image data. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setPictureFill(imageUrl)

Sets the image at the provided URL as the page background. The image is stretched to match the dimensions of the page.

Inserting the image fetches it from the URL once and a copy is stored for display inside the presentation. Images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF format.

The provided URL must be publicly accessible and no larger than 2kB. The URL itself is saved with the image and exposed via PictureFill.getSourceUrl().

Parameters Name Type Description imageUrl String The URL to download the image from. Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(color)

Sets the solid fill to the given Color.

Parameters Name Type Description color Color Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(color, alpha)

Sets the solid fill to the given alpha and Color.

Parameters Name Type Description color Color alpha Number Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(red, green, blue)

Sets the solid fill to the given RGB values.

Parameters Name Type Description red Integer green Integer blue Integer Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(red, green, blue, alpha)

Sets the solid fill to the given alpha and RGB values.

Parameters Name Type Description red Integer green Integer blue Integer alpha Number Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(hexString)

Sets the solid fill to the given hex color string.

The hex string must be in the format '#RRGGBB'. For example, pink would be represented as '#FFC0CB'.

Parameters Name Type Description hexString String Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(hexString, alpha)

Sets the solid fill to the given alpha and hex color string.

The hex string must be in the format '#RRGGBB'. For example, pink would be represented as '#FFC0CB'.

Parameters Name Type Description hexString String alpha Number Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(color)

Sets the solid fill to the given ThemeColorType.

Parameters Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setSolidFill(color, alpha)

Sets the solid fill to the given alpha and ThemeColorType.

Parameters Authorization

Scripts that use this method require authorization with one or more of the following scopes:

setTransparent()

Sets the background to transparent.

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-12-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-03 UTC."],[[["`PageBackground` objects allow you to control the background of a Google Slide, including its fill type, color, and visibility."],["You can set the background to a solid color, an image from a URL or blob, or make it transparent using dedicated methods."],["Various methods like `getSolidFill()`, `getPictureFill()`, and `getType()` provide information about the current background settings."],["All methods for manipulating `PageBackground` require authorization with specific Google Slides scopes."],["Images used for backgrounds are subject to size and format limitations, needing to be under 50MB, less than 25 megapixels, and in PNG, JPEG, or GIF format."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4