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.
39 40 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 39 def explode end |
#height ⇒ Object
The height method is used to retrieve the height of the image.
The height is given in inches.
62 63 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 62 def height end |
#height=(height) ⇒ Object
The height= method is used to set the height of the image.
The height is set in inches.
89 90 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 89 def height=(height) end |
#image_rep ⇒ Sketchup::ImageRep
The #image_rep method returns a copy of a Sketchup::ImageRep object representing the pixel data.
105 106 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 105 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.
127 128 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 127 def normal end |
#origin ⇒ Object
The origin method is used to retrieve the 3D point that defines the origin of the image.
150 151 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 150 def origin end |
#origin=(point) ⇒ Object
The origin= method is used to set the 3D point as the origin of the image.
177 178 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 177 def origin=(point) end |
#path ⇒ Object
The path method is used to retrieve the path of the file defining the image.
198 199 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 198 def path end |
#pixelheight ⇒ Object
The pixelheight method is used to retrieve the height of the image file in pixels.
221 222 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 221 def pixelheight end |
#pixelwidth ⇒ Object
The pixelwidth method is used to retrieve the width of the image file in pixels.
243 244 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 243 def pixelwidth end |
#size=(width, height) ⇒ Object
The size= method is used to set the width and height of the image, in inches.
272 273 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 272 def size=(width, height) end |
#transform!(transform) ⇒ Object
The transform! method is used to apply a transformation to the image.
299 300 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 299 def transform!(transform) end |
#transformation ⇒ Object
The transformation method is used to retrieve the transformation for the image.
318 319 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 318 def transformation end |
#transformation=(transform) ⇒ Object
The transformation= method is used to set the transformation for the image.
341 342 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 341 def transformation=(transform) end |
#width ⇒ Object
The width method is used to retrieve the width of the image.
The width is given in inches.
365 366 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 365 def width end |
#width=(width) ⇒ Object
The width= method is used to set the width of the image.
The width is set in inches.
392 393 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 392 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.
414 415 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 414 def zrotation end |