common
Class ImageImport
Object
common:Generic
common:ImageWrapper
common:ImageImport
class
- ImageWrapper:ImageImport
This is the base image import class.
Ultra Fractal Source
Toggle UF Source Code Display
class ImageImport(ImageWrapper) {
; This is the base image import class.
public:
func ImageImport(Generic pparent)
ImageWrapper.ImageWrapper(pparent)
m_ImportedImage = new @p_importedimage
endfunc
color func getColor(complex pz)
if (@p_maintainaspect)
pz = this.NormalizePixel(pz)
endif
return m_ImportedImage.getColor(pz)
endfunc
color func getPixel(int px, int py)
return m_ImportedImage.getPixel(px, py)
endfunc
bool func getEmpty()
return m_ImportedImage.getEmpty()
endfunc
int func getWidth()
return m_ImportedImage.getWidth()
endfunc
int func getHeight()
return m_ImportedImage.getHeight()
endfunc
protected:
Image m_ImportedImage
default:
title = "Image Import"
int param v_imageimport
caption = "Version (ImageImport)"
default = 100
hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
visible = @v_imageimport < 100
endparam
bool param p_maintainaspect
caption = "Keep proportions"
default = true
hint = "If checked, the image will have the same proportions it originally had (except for any fractal distortion). If you uncheck this box, the image will be stretched to a square shape regardless of its original dimensions."
endparam
Image param p_importedimage
caption = "Image file"
hint = "This is the image you want to import and use."
endparam
}
Methods inherited from class Object |
|
ImageImport
public ImageImport(Generic pparent)
ImageImport
public ImageImport()
getColor
public color getColor(complex pz)
- Description copied from class:
ImageWrapper
- member functions
these are pass-throughs to the Image class
- Overrides:
getColor
in class ImageWrapper
getPixel
public color getPixel(int px,
int py)
- Overrides:
getPixel
in class ImageWrapper
getEmpty
public boolean getEmpty()
- Overrides:
getEmpty
in class ImageWrapper
getWidth
public int getWidth()
- Overrides:
getWidth
in class ImageWrapper
getHeight
public int getHeight()
- Overrides:
getHeight
in class ImageWrapper