Class: Sketchup::Image
- Inherits:
-
Drawingelement
- Object
- Entity
- Drawingelement
- Sketchup::Image
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/Image.rb
Overview
An Image object represents a raster image placed in the Model.
Instance Method Summary collapse
-
#explode ⇒ Object
The explode method is used to explode an image into a face with a texture on it.
-
#height ⇒ Object
The height method is used to retrieve the height of the image.
-
#height=(height) ⇒ Object
The height= method is used to set the height of the image.
-
#image_rep ⇒ Sketchup::ImageRep
The #image_rep method returns a copy of a ImageRep object representing the pixel data.
-
#normal ⇒ Object
The normal method is used to retrieve the 3D Vector that is perpendicular to the plane of the image.
-
#origin ⇒ Object
The origin method is used to retrieve the 3D point that defines the origin of the image.
-
#origin=(point) ⇒ Object
The origin= method is used to set the 3D point as the origin of the image.
-
#path ⇒ Object
The path method is used to retrieve the path of the file defining the image.
-
#pixelheight ⇒ Object
The pixelheight method is used to retrieve the height of the image file in pixels.
-
#pixelwidth ⇒ Object
The pixelwidth method is used to retrieve the width of the image file in pixels.
-
#size=(width, height) ⇒ Object
The size= method is used to set the width and height of the image, in inches.
-
#transform!(transform) ⇒ Object
The transform! method is used to apply a transformation to the image.
-
#transformation ⇒ Object
The transformation method is used to retrieve the transformation for the image.
-
#transformation=(transform) ⇒ Object
The transformation= method is used to set the transformation for the image.
-
#width ⇒ Object
The width method is used to retrieve the width of the image.
-
#width=(width) ⇒ Object
The width= method is used to set the width of the image.
-
#zrotation ⇒ Object
The zrotation method is used to get the angle that the image is rotated about the normal vector from an arbitrary X axis.
Methods inherited from Drawingelement
#bounds, #casts_shadows=, #casts_shadows?, #erase!, #hidden=, #hidden?, #layer, #layer=, #material, #material=, #receives_shadows=, #receives_shadows?, #visible=, #visible?
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
#explode ⇒ Object
The explode method is used to explode an image into a face with a texture on it.
Note that current versions of SketchUp will return an empty array here. To work around this limitation you can iterate over your entities collection to determine which new entities were created.
Versions prior to SketchUp 2015 returned an empty array due to a bug.
31 32 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 31 def explode end |
#height ⇒ Object
The height method is used to retrieve the height of the image.
The height is given in inches.
54 55 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 54 def height end |
#height=(height) ⇒ Object
The height= method is used to set the height of the image.
The height is set in inches.
81 82 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 81 def height=(height) end |
#image_rep ⇒ Sketchup::ImageRep
The #image_rep method returns a copy of a Sketchup::ImageRep object representing the pixel data.
97 98 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 97 def image_rep end |
#normal ⇒ Object
The normal method is used to retrieve the 3D Vector that is perpendicular to the plane of the image.
119 120 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 119 def normal end |
#origin ⇒ Object
The origin method is used to retrieve the 3D point that defines the origin of the image.
142 143 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 142 def origin end |
#origin=(point) ⇒ Object
The origin= method is used to set the 3D point as the origin of the image.
169 170 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 169 def origin=(point) end |
#path ⇒ Object
The path method is used to retrieve the path of the file defining the image.
190 191 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 190 def path end |
#pixelheight ⇒ Object
The pixelheight method is used to retrieve the height of the image file in pixels.
213 214 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 213 def pixelheight end |
#pixelwidth ⇒ Object
The pixelwidth method is used to retrieve the width of the image file in pixels.
235 236 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 235 def pixelwidth end |
#size=(width, height) ⇒ Object
The size= method is used to set the width and height of the image, in inches.
264 265 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 264 def size=(width, height) end |
#transform!(transform) ⇒ Object
The transform! method is used to apply a transformation to the image.
291 292 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 291 def transform!(transform) end |
#transformation ⇒ Object
The transformation method is used to retrieve the transformation for the image.
310 311 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 310 def transformation end |
#transformation=(transform) ⇒ Object
The transformation= method is used to set the transformation for the image.
333 334 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 333 def transformation=(transform) end |
#width ⇒ Object
The width method is used to retrieve the width of the image.
The width is given in inches.
357 358 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 357 def width end |
#width=(width) ⇒ Object
The width= method is used to set the width of the image.
The width is set in inches.
384 385 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 384 def width=(width) end |
#zrotation ⇒ Object
The zrotation method is used to get the angle that the image is rotated about the normal vector from an arbitrary X axis.
406 407 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 406 def zrotation end |