CAObject::PictureToFile

Revision as of 21:12, 12 May 2015 by Lchrisman (talk | contribs) (Created page with "<< Back to CAObject = bool PictureToFile(fileName,mimeType) = Causes ADE to retrieve CAObject object’s picture, if any, and save it to file «filename», ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<< Back to CAObject

bool PictureToFile(fileName,mimeType)

Causes ADE to retrieve CAObject object’s picture, if any, and save it to file «filename», in the format specified by «mimeType».

Parameters

«filename»: string.

«mimeType»: string. Usually one of:

  • "image/jpeg"
  • "image/bmp"
  • "image/tiff"
  • "image/png"

Return value

Boolean. True on success.

Usage

C#

CAObject obj = ade.Get("Pi1");
bool bSuccess = obj.PictureToFile( @"C:\Temp\myPict.jpg","image/jpeg");

See Also

Comments


You are not allowed to post comments.