Commit cf269f1b 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@51931 954022d7-b5bf-4e40-9824-e11837661b57
parent 18fe8fbe
......@@ -891,6 +891,20 @@ CRGBColor.prototype =
this.RGBA.B = RGB & 0xFF;
},
writeToBinaryLong: function(w)
{
w.WriteLong(((this.RGBA.R << 16) & 0xFF0000) + ((this.RGBA.G << 8) & 0xFF00) + this.RGBA.B);
},
readFromBinaryLong: function(r)
{
var RGB = r.GetLong();
this.RGBA.R = (RGB >> 16) & 0xFF;
this.RGBA.G = (RGB >> 8) & 0xFF;
this.RGBA.B = RGB & 0xFF;
},
Copy: function()
{
var ret = new CRGBColor();
......
......@@ -675,6 +675,19 @@ function CRGBColor()
CRGBColor.prototype =
{
writeToBinaryLong: function(w)
{
w.WriteLong(((this.RGBA.R << 16) & 0xFF0000) + ((this.RGBA.G << 8) & 0xFF00) + this.RGBA.B);
},
readFromBinaryLong: function(r)
{
var RGB = r.GetLong();
this.RGBA.R = (RGB >> 16) & 0xFF;
this.RGBA.G = (RGB >> 8) & 0xFF;
this.RGBA.B = RGB & 0xFF;
},
Write_ToBinary2 : function(Writer)
{
Writer.WriteLong(this.type);
......
......@@ -727,6 +727,19 @@ function CRGBColor()
CRGBColor.prototype =
{
writeToBinaryLong: function(w)
{
w.WriteLong(((this.RGBA.R << 16) & 0xFF0000) + ((this.RGBA.G << 8) & 0xFF00) + this.RGBA.B);
},
readFromBinaryLong: function(r)
{
var RGB = r.GetLong();
this.RGBA.R = (RGB >> 16) & 0xFF;
this.RGBA.G = (RGB >> 8) & 0xFF;
this.RGBA.B = RGB & 0xFF;
},
Write_ToBinary2 : function(Writer)
{
Writer.WriteLong(this.type);
......
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