Background. I have a function ( stored in a package ) that creates 2D graphic images, its prototype looks like this:
question[wi_, he_, co_] :=
DynamicModule[{},
Manipulate[
Graphics[{Translate[{color, Rectangle[{0, 0}, {.8, .4}]},
Tuples[{Range[width], Range[heigth]}]]}],
{color, Red}, {width, 1, 5}, {heigth, 1, 5},
Initialization :> {color = co, width = wi, heigth = he}]]
In the actual function the Graphics function is enclosed in a Dynamic[]. The function works as expected.
Something that I don't understand happens when I do the following: 1) right-click ( Windows ) on an image and paste the image to elsewhere in the notebook; 2) repeat this for several different width / height combinations. 3) save the notebook 4) open the notebook 5) execute the function but with a different color, THEN: the color of the pasted images changes as well.
Question: How can I permanently copy and paste ( not, in any way, linked to code ) a graphic created in a Notebook with Graphics2D?
EDIT(2) per request of halirutan :
Cell[BoxData[
GraphicsBox[GeometricTransformationBox[GeometricTransformationBox[
DynamicBox[TypesetToBoxes[
MapThread[FE
Y2Y2
Privatefun$$93, {FE`Y2`Y2`Private`ptlst$$93, FE`Y2`Y2`Private`tplst$$93, FE`Y2`Y2`Private`colst$$93}], StandardForm, Graphics],
ImageSizeCache->{{89.7606933090101, 182.2393066909899}, {81.76069330901011, 169.2393066909899}}], {{{{1, 0}, {0, 1}}, {0, 0}}, {{{-1, 0}, {0, 1}}, {1, 0}}, {{{1,
0}, {0, -1}}, {0, 1}}, {{{-1, 0}, {0, -1}}, {1, 1}}}], {{{0, 0}}, {{-0.7071067811865475, 0.7071067811865475}}, {{0.7071067811865475,
0.7071067811865475}}, {{0, 1.4142135623730951
}}}],
PlotRegion->Automatic]], "Input"]
Cell
-data still contains the dynamically updated front-end variables. This is not the case here. It seems you are not copying the image only. $\endgroup$question[3, 5, Red]
yields for me a cell lacking theDynamicBox
and without reference to any FE variables. $\endgroup$