PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of gglPhoto variables
  • Functions that use the gglPhoto variables:
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The gglPhoto type is used to create and modify a photo in a Google Picasa album. The characteristics of this type of variable can be defined and modified by several WLanguage properties.
This type of variable is used by the gglAlbum variables.
Note: See Declaring a variable for more details.
Example
// Connection to Google
Cnt is gglConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..ApplicationName = "MyApp-01"
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END

// Retrieve the array of available albums
arrAlbum is array of gglAlbum = GglListAlbum(Cnt)

// Retrieve all the photos found in the first album (the metadata only)
GglFillAlbum(Cnt, arrAlbum[1], gglWithPhotoData)

// Browse the photos
MyPhotos is gglPhoto
FOR EACH MyPhotos OF arrAlbum[1]..PhotoData
Trace(MyPhotos..Description)
END

// Add a photo to an album
// Retrieve the album
MyAlbum is gglAlbum = GglGetAlbum(Cnt, "my favorite album")
// Create a photo
MyPhoto is gglPhoto
MyPhoto..Image = "c:\Images\my_photo.jpg"
MyPhoto..Legend = "My very own photo"

// Add the image to the album
Add(MyAlbum..PhotoData, MyPhoto)

// Send the photo and update the album
GglWrite(Cnt, MyAlbum)
Remarks

Properties specific to the description of gglPhoto variables

The following properties can be used to handle a photo found in a Google Picasa photo:
NameType usedEffect
AccessCharacter String constantType of access to the photo. The possible values are:
  • gglPrivate: The photo can be seen by the authorized persons only.
  • gglPublic: The photo can be seen by any Web user who knows its URL and during the public searches (by the Google Image Search service for example).
ChecksumCharacter stringSum of Hash of the image. This property is available in read-only.
CommentArray of gglCommentComments associated with the photo.
CommentingEnabledBoolean
  • True to enable the management of comments on the album,
  • False otherwise.
UpdateDateDateTimeDate of the last update of the photo. This property is available in read-only.
HeightIntegerHeight of photo in pixels. This property is available in read-only.
AlbumIdentifierCharacter stringIdentifier of the album to which the photo belongs. This property is available in read-only.
PhotoIdentifierCharacter stringIdentifier of the photo within the album. This property is available in read-only.
ImageImageInitial image. This property corresponds to an empty string by default.

To retrieve a photo, you must use GglFillPhoto to retrieve the binary data of the photo. Then, this photo can be saved (fSaveText) or displayed in an Image control.

To update a photo, this property can correspond to:
  • the path to an image accessible from the current computer.
  • an Image control containing an image.
  • a drawing performed in an Image control with the drawing functions and saved in memory.
WidthIntegerWidth of photo expressed in pixels. This property is available in read-only.
LegendCharacter stringDescription of the photo.
MediagglMediaGroupAdditional data about the photo.
NbCommentIntegerNumber of comments about the photo. This property is available in read-only.
FileNameCharacter stringName of the file corresponding to the photo on the server.
Caution: This property must necessarily be specified.
TagArray of gglTagTags associated with the photo.
EXIFTaggglEXIFTagEXIF tags associated with the photo. This property is available in read-only.
SizeIntegerSize of the photo in bytes. This property is available in read-only.
TimestampIntegerTimestamp of the photo (number of milliseconds from January 1st 1970).
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the gglPhoto variables:

Versions 14 and later
GglDelete
New in version 14
GglDelete
GglDelete
Deletes data from the Google server.
Versions 14 and later
GglFillPhoto
New in version 14
GglFillPhoto
GglFillPhoto
Retrieves the details about the photos found in a Google Picasa album: initial image, comments, tags, thumbnails.
Versions 14 and later
GglListPhoto
New in version 14
GglListPhoto
GglListPhoto
Lists the photos found in the Google Picasa albums corresponding to specific criteria.
Versions 14 and later
GglWrite
New in version 14
GglWrite
GglWrite
Creates and/or updates data on the Google server (addition or modification of data).
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment