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.
-
#glued_to ⇒ Sketchup::Face, ...
The #glued_to method is used to retrieve the entity that this image is glued to.
-
#glued_to=(drawing_element) ⇒ Sketchup::Face, ...
The #glued_to= method glues this image to a drawing element.
-
#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 |
#glued_to ⇒ Sketchup::Face, ...
The #glued_to method is used to retrieve the entity that this image is glued to.
57 58 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 57 def glued_to end |
#glued_to=(drawing_element) ⇒ Sketchup::Face, ...
The #glued_to= method glues this image to a drawing element. When moving this other drawing elment with the Move tool, the image moves with it.
86 87 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 86 def glued_to=(drawing_element) end |
#height ⇒ Object
The height method is used to retrieve the height of the image.
The height is given in inches.
109 110 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 109 def height end |
#height=(height) ⇒ Object
The height= method is used to set the height of the image.
The height is set in inches.
136 137 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 136 def height=(height) end |
#image_rep ⇒ Sketchup::ImageRep
The #image_rep method returns a copy of a Sketchup::ImageRep object representing the pixel data.
156 157 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 156 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.
178 179 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 178 def normal end |
#origin ⇒ Object
The origin method is used to retrieve the 3D point that defines the origin of the image.
201 202 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 201 def origin end |
#origin=(point) ⇒ Object
The origin= method is used to set the 3D point as the origin of the image.
228 229 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 228 def origin=(point) end |
#path ⇒ Object
The path method is used to retrieve the path of the file defining the image.
249 250 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 249 def path end |
#pixelheight ⇒ Object
The pixelheight method is used to retrieve the height of the image file in pixels.
272 273 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 272 def pixelheight end |
#pixelwidth ⇒ Object
The pixelwidth method is used to retrieve the width of the image file in pixels.
294 295 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 294 def pixelwidth end |
#size=(width, height) ⇒ Object
The size= method is used to set the width and height of the image, in inches.
323 324 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 323 def size=(width, height) end |
#transform!(transform) ⇒ Object
The transform! method is used to apply a transformation to the image.
350 351 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 350 def transform!(transform) end |
#transformation ⇒ Object
The transformation method is used to retrieve the transformation for the image.
369 370 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 369 def transformation end |
#transformation=(transform) ⇒ Object
The transformation= method is used to set the transformation for the image.
392 393 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 392 def transformation=(transform) end |
#width ⇒ Object
The width method is used to retrieve the width of the image.
The width is given in inches.
416 417 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 416 def width end |
#width=(width) ⇒ Object
The width= method is used to set the width of the image.
The width is set in inches.
443 444 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 443 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.
465 466 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Image.rb', line 465 def zrotation end |