Module: Magick

Defined in:
lib/rvg/rvg.rb,
lib/RMagick.rb,
lib/rvg/misc.rb,
lib/rvg/misc.rb,
lib/rvg/misc.rb,
lib/rvg/text.rb,
lib/rvg/paint.rb,
lib/rvg/units.rb,
lib/rvg/clippath.rb,
lib/rvg/pathdata.rb,
lib/rvg/stylable.rb,
lib/rvg/container.rb,
lib/rmagick4j/draw.rb,
lib/rmagick4j/enum.rb,
lib/rvg/deep_equal.rb,
lib/rmagick4j/image.rb,
lib/rmagick4j/pixel.rb,
lib/rvg/describable.rb,
lib/rvg/stretchable.rb,
lib/rvg/embellishable.rb,
lib/rvg/transformable.rb,
lib/rmagick4j/constants.rb,
lib/rmagick4j/image_list.rb,
lib/rmagick4j/type_metric.rb,
lib/rmagick4j/texture_fill.rb,
lib/rmagick4j/gradient_fill.rb

Overview

– $Id: transformable.rb,v 1.4 2008/02/24 18:26:37 rmagick Exp $ Copyright © 2008 Timothy P. Hunter ++

Defined Under Namespace

Modules: IPTC Classes: ColorspaceType, CompositeOperator, Draw, Enum, Geometry, GeometryValue, GradientFill, GravityType, HatchFill, Image, ImageList, OptionalMethodArguments, Pixel, RVG, TextureFill, TypeMetric

Constant Summary collapse

PercentGeometry =
GeometryValue.new(:PercentGeometry, 1).freeze
AspectGeometry =
GeometryValue.new(:AspectGeometry, 2).freeze
LessGeometry =
GeometryValue.new(:LessGeometry, 3).freeze
GreaterGeometry =
GeometryValue.new(:GreaterGeometry, 4).freeze
AreaGeometry =
GeometryValue.new(:AreaGeometry, 5).freeze
MinimumGeometry =
GeometryValue.new(:MinimumGeometry, 6).freeze
LeftAlign =
nextVal
RightAlign =
nextVal
CenterAlign =
nextVal
StartAnchor =
nextVal
MiddleAnchor =
nextVal
EndAnchor =
nextVal
NoDecoration =
nextVal
UnderlineDecoration =
nextVal
OverlineDecoration =
nextVal
LineThroughDecoration =
nextVal
AnyWeight =
nextVal
NormalWeight =
nextVal
BoldWeight =
nextVal
BolderWeight =
nextVal
LighterWeight =
nextVal
PointMethod =
nextVal
ReplaceMethod =
nextVal
FloodfillMethod =
nextVal
FillToBorderMethod =
nextVal
ResetMethod =
nextVal
NormalStretch =
nextVal
UltraCondensedStretch =
nextVal
ExtraCondensedStretch =
nextVal
CondensedStretch =
nextVal
SemiCondensedStretch =
nextVal
SemiExpandedStretch =
nextVal
ExpandedStretch =
nextVal
ExtraExpandedStretch =
nextVal
UltraExpandedStretch =
nextVal
AnyStretch =
nextVal
NormalStyle =
nextVal
ItalicStyle =
nextVal
ObliqueStyle =
nextVal
AnyStyle =
nextVal
TransparentColorspace =

ColorspaceType constants DEF_ENUM(ColorspaceType)

nextVal
OHTAColorspace =
nextVal
XYZColorspace =
nextVal
YCbCrColorspace =
nextVal
YCCColorspace =
nextVal
YIQColorspace =
nextVal
YPbPrColorspace =
nextVal
YUVColorspace =
nextVal
CMYKColorspace =
nextVal
SRGBColorspace =
nextVal
HSLColorspace =
nextVal
HWBColorspace =
nextVal
HSBColorspace =

IM 6.0.0

nextVal
CineonLogRGBColorspace =

GM 1.2

nextVal
LABColorspace =

GM 1.2

nextVal
Rec601LumaColorspace =

GM 1.2 && IM 6.2.2

nextVal
Rec601YCbCrColorspace =

GM 1.2 && IM 6.2.2

nextVal
Rec709LumaColorspace =

GM 1.2 && IM 6.2.2

nextVal
Rec709YCbCrColorspace =

GM 1.2 && IM 6.2.2

nextVal
LogColorspace =

IM 6.2.3

nextVal
Effects =
Java::Magick4jEffects
Magick4J =
Java::magick4j
RMagick4J =
Java::rmagick4j
QuantumDepth =
8
QuantumRange =
2**QuantumDepth-1
QuantumScale =
1.0/QuantumRange.to_f
JGeometry =

Geometries

Magick4J::Geometry
JRelativeHeightDistance =
Magick4J::RelativeHeightDistance
JRelativeWidthDistance =
Magick4J::RelativeWidthDistance
JHeightDistances =
[
 Magick4J::SimpleValueHeightDistance,
 Magick4J::PercentValueHeightDistance,
 Magick4J::AspectValueHeightDistance,
 Magick4J::LessValueHeightDistance,
 Magick4J::GreaterValueHeightDistance,
 Magick4J::AreaValueHeightDistance
]
JWidthDistances =
[
 Magick4J::SimpleValueWidthDistance,
 Magick4J::PercentValueWidthDistance,
 Magick4J::AspectValueWidthDistance,
 Magick4J::LessValueWidthDistance,
 Magick4J::GreaterValueWidthDistance,
 Magick4J::AreaValueWidthDistance
]
@@formats =
nil
@@enumVal =

Simple hack Enums. TODO All these need changed to the official way used above.

1

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.trace_proc=(value) ⇒ Object (writeonly)

Sets the attribute trace_proc

Parameters:

  • value

    the value to set the attribute trace_proc to.



27
28
29
# File 'lib/RMagick.rb', line 27

def trace_proc=(value)
  @trace_proc = value
end

Class Method Details

.formats(&block) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'lib/RMagick.rb', line 16

def Magick.formats(&block)
    @@formats ||= Magick.init_formats
    if block_given?
        @@formats.each { |k,v| yield(k,v) }
        self
    else
        @@formats
    end
end

.nextValObject



57
58
59
# File 'lib/rmagick4j/enum.rb', line 57

def self.nextVal
  @@enumVal = @@enumVal + 1
end