dmj5
Class DMJ_ImageColorize
Object
common:Generic
common:ImageWrapper
dmj5:DMJ_ImageColorize
class
- ImageWrapper:DMJ_ImageColorize
This convenience class bundles an ImageWrapper with a Colorize.
Ultra Fractal Source
Toggle UF Source Code Display
class DMJ_ImageColorize(common.ulb:ImageWrapper) {
; This convenience class bundles an ImageWrapper with a Colorize.
public:
import "common.ulb"
func DMJ_ImageColorize(Generic pparent)
ImageWrapper.ImageWrapper(pparent)
m_ImportedImage = new @f_importedimage(this)
m_ColorTransfer = new @f_colortransfer(this)
endfunc
color func getColor(complex pz)
color c = m_ImportedImage.getColor(pz)
m_ColorTransfer.Init(pz)
return m_ColorTransfer.Iterate(c)
endfunc
color func getPixel(int px, int py)
color c = m_ImportedImage.getPixel(px,py)
m_ColorTransfer.Init(px+flip(py))
return m_ColorTransfer.Iterate(c)
endfunc
protected:
ImageWrapper m_ImportedImage
ColorTransfer m_ColorTransfer
default:
title = "Image Colorize"
int param v_dmj_imagecolorize
caption = "Version (DMJ_ImageColorize)"
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_dmj_imagecolorize < 100
endparam
ImageWrapper param f_importedimage
caption = "Image Object"
default = ImageImport
hint = "This is the image object to apply color effects to."
endparam
ColorTransfer param f_colortransfer
caption = "Color Transfer"
default = DMJ_Colorize
hint = "This is the color effect to apply."
endparam
}
Methods inherited from class Object |
|
DMJ_ImageColorize
public DMJ_ImageColorize(Generic pparent)
DMJ_ImageColorize
public DMJ_ImageColorize()
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