CAObject::PictureToFile

Revision as of 06:57, 24 October 2015 by Jhuawen (talk | contribs) (Created page with "Boolean(布尔值):成功的话为'''True'''。")

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».

参 数

«filename»:string(字符串)

«mimeType»:string(字符串)。 使用下面的代码中的一个:

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

返回值

Boolean(布尔值):成功的话为True

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.