# \[?\] Create a graphic object to manipulate?

**URL:** <https://community.wolfram.com/t/create-a-graphic-object-to-manipulate/10628>\
**Category:** Questions\
**Tags:** graphics-and-visualization, interface-construction\
**Created:** [June 1, 2017, 8:43pm UTC](https://community.wolfram.com/t/create-a-graphic-object-to-manipulate/10628 "2017-06-01T20:43:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgevw3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/georgevw3/32/19010_2.png) [@georgevw3](https://community.wolfram.com/u/georgevw3)\
**Post date:** [June 1, 2017, 8:43pm UTC](https://community.wolfram.com/t/create-a-graphic-object-to-manipulate/10628/1 "2017-06-01T20:43:44Z")

</div>

I would like to be able to save a set of graphics primitives as a single object that I can resize, rotate, blur, etc.  
I can see no way to do this. Region Union does not like the colors, for example.

here is some code:

```
Graphics[{Red, Disk[{-0.625, -1.208}, 0.106], 
  Disk[{0.625, -1.208}, 0.106], White, Disk[{0, 0}, 1], 
  Polygon[{{0.208, -0.916}, {0.1458, -2.21}, {-0.1458, -2.21}, \
{-0.208, -0.916}, {0.208, -0.916}}], Disk[{0, -2.15}, 0.1458], 
  Rectangle[{-.625, -1.833}, {0.625, -1.667}], 
  Rectangle[{ -0.75, -3.458}, {-0.5, -1.208}], 
  Rectangle[{ 0.5, -3.458}, {0.75, -1.208}]}, Background -> Black, 
 PlotRange -> {{-2, 2}, {-5, 3}}]

```

This makes a possibly recognizable object.

 ![Enterprise.png](https://global.discourse-cdn.com/wolfram/original/1X/acc54e1f216e29779cf4eff92c4fb0bf839596f6.png)

I don’t want to rasterize the image, because I may want to scale it or use different colors, etc.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![neils](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/neils/32/20595_2.png) [@neils](https://community.wolfram.com/u/neils)\
**Post date:** [June 1, 2017, 10:28pm UTC](https://community.wolfram.com/t/create-a-graphic-object-to-manipulate/10628/2 "2017-06-01T22:28:28Z")

</div>

George,

If you set your contents of the Graphic to gr:

```
gr = {Red, Disk[{-0.625, -1.208}, 0.106], 
   Disk[{0.625, -1.208}, 0.106], White, Disk[{0, 0}, 1], 
   Polygon[{{0.208, -0.916}, {0.1458, -2.21}, {-0.1458, -2.21}, \
{-0.208, -0.916}, {0.208, -0.916}}], Disk[{0, -2.15}, 0.1458], 
   Rectangle[{-.625, -1.833}, {0.625, -1.667}], 
   Rectangle[{-0.75, -3.458}, {-0.5, -1.208}], 
   Rectangle[{0.5, -3.458}, {0.75, -1.208}]};

```

and create the original object:

```
obj = Graphics[gr, Background -> Black, PlotRange -> {{-2, 2}, {-5, 3}}]

```

You can do the scaling and rotating:

```
Graphics[Rotate[gr, 10 Degree], Background -> Black, 
 PlotRange -> {{-2, 2}, {-5, 3}}, ImageSize -> 140]

```

or change things:

```
Graphics[Rotate[gr /. Red -> Green, 10 Degree], Background -> Black, 
 PlotRange -> {{-2, 2}, {-5, 3}}, ImageSize -> 140]

```

to get

 ![image.jpg](https://global.discourse-cdn.com/wolfram/original/3X/a/0/a0d1142aaca5ecd76e7f42e5d610e2a053abb09b.jpeg)

Is this what you are looking for?

Regards

Neil

---

<div class="post-metadata">

**Author:** ![georgevw3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/georgevw3/32/19010_2.png) [@georgevw3](https://community.wolfram.com/u/georgevw3)\
**Post date:** [June 1, 2017, 10:56pm UTC](https://community.wolfram.com/t/create-a-graphic-object-to-manipulate/10628/3 "2017-06-01T22:56:24Z")

</div>

Perfect. I was trying to work one level up, which (obviously) did not work.

Many Thanks.
