Commit ad446f18 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47695 954022d7-b5bf-4e40-9824-e11837661b57
parent 83934cae
...@@ -99,7 +99,7 @@ CImage.prototype = ...@@ -99,7 +99,7 @@ CImage.prototype =
return true; return true;
}, },
init: function(x, y, extX, extY, imageId) initDefault: function(x, y, extX, extY, imageId)
{ {
this.setPosition(x, y); this.setPosition(x, y);
this.setExtents(extX, extY); this.setExtents(extX, extY);
...@@ -156,6 +156,15 @@ CImage.prototype = ...@@ -156,6 +156,15 @@ CImage.prototype =
{ {
if(this.recalcInfo.recalculateTransform) if(this.recalcInfo.recalculateTransform)
this.recalculateTransform(); this.recalculateTransform();
if(this.recalcInfo.recalculateBrush)
this.recalculateBrush();
},
recalculateBrush: function()
{
this.brush = new CUniFill();
this.brush.fill = new CBlipFill();
this.brush.fill.RasterImageId = this.blipFill.RasterImageId;
}, },
recalculateTransform: function() recalculateTransform: function()
...@@ -394,6 +403,17 @@ CImage.prototype = ...@@ -394,6 +403,17 @@ CImage.prototype =
}, },
draw: function(graphics)
{
graphics.SetIntegerGrid(false);
graphics.transform3(this.transform, false);
var shape_drawer = new CShapeDrawer();
shape_drawer.fromShape(this, graphics);
shape_drawer.draw(this.spPr.geometry);
graphics.reset();
graphics.SetIntegerGrid(true);
},
hitToAdjustment: function(x, y) hitToAdjustment: function(x, y)
{ {
return {hit: false, adjPolarFlag: null, adjNum: null}; return {hit: false, adjPolarFlag: null, adjNum: null};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment