⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imageobj.java

📁 Welcome to MS4W, the no fuss installer for setting up MapServer on Microsoft Windows platforms. The
💻 JAVA
字号:
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version: 1.3.21 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */package edu.umn.gis.mapscript;public class imageObj {  private long swigCPtr;  protected boolean swigCMemOwn;  protected imageObj(long cPtr, boolean cMemoryOwn) {    swigCMemOwn = cMemoryOwn;    swigCPtr = cPtr;  }  protected imageObj() {    this(0, false);  }  protected void finalize() {    delete();  }  public void delete() {    if(swigCPtr != 0 && swigCMemOwn) {      swigCMemOwn = false;      mapscriptJNI.delete_imageObj(swigCPtr);    }    swigCPtr = 0;  }  protected static long getCPtr(imageObj obj) {    return (obj == null) ? 0 : obj.swigCPtr;  }  public int getWidth() {    return mapscriptJNI.get_imageObj_width(swigCPtr);  }  public int getHeight() {    return mapscriptJNI.get_imageObj_height(swigCPtr);  }  public String getImagepath() {    return mapscriptJNI.get_imageObj_imagepath(swigCPtr);  }  public String getImageurl() {    return mapscriptJNI.get_imageObj_imageurl(swigCPtr);  }  public void setFormat(outputFormatObj format) {    mapscriptJNI.set_imageObj_format(swigCPtr, outputFormatObj.getCPtr(format));  }  public outputFormatObj getFormat() {    long cPtr = mapscriptJNI.get_imageObj_format(swigCPtr);    return (cPtr == 0) ? null : new outputFormatObj(cPtr, false);  }  public void setRenderer(int renderer) {    mapscriptJNI.set_imageObj_renderer(swigCPtr, renderer);  }  public int getRenderer() {    return mapscriptJNI.get_imageObj_renderer(swigCPtr);  }  public void setSize(int size) {    mapscriptJNI.set_imageObj_size(swigCPtr, size);  }  public int getSize() {    return mapscriptJNI.get_imageObj_size(swigCPtr);  }  public imageObj(int width, int height, outputFormatObj input_format, String file) {    this(mapscriptJNI.new_imageObj(width, height, outputFormatObj.getCPtr(input_format), file), true);  }  public void save(String filename, mapObj map) {    mapscriptJNI.imageObj_save(swigCPtr, filename, mapObj.getCPtr(map));  }  public int write(SWIGTYPE_p_FILE file) {    return mapscriptJNI.imageObj_write(swigCPtr, SWIGTYPE_p_FILE.getCPtr(file));  }  public byte[] getBytes() {    return mapscriptJNI.imageObj_getBytes(swigCPtr);}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -