Difference between revisions of "CAObject::PictureToFile"

(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», ...")
 
Line 1: Line 1:
[[CAObject|<< Back to CAObject]]
+
[[Category:ADE User Guide]]
 
+
[[ADE User Guide]] > [[ADE Server Class Reference]] > [[CAObject]]
 +
<languages />
 +
<translate>
 
= bool PictureToFile(fileName,mimeType) =
 
= bool PictureToFile(fileName,mimeType) =
  
Line 29: Line 31:
  
 
* [[CAObject::PictureToStream]] method
 
* [[CAObject::PictureToStream]] method
 +
</translate>

Revision as of 00:43, 16 June 2015

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

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.