Example #1
0
        public string ToString(bool bDumpVars)
        {
            string sReturn = "";

            try {
                sReturn = (gbFrame != null)?(gbFrame.DumpStyle()):"null-frame-anim";
                if (bDumpVars)
                {
                    if (sReturn.EndsWith("}"))
                    {
                        sReturn = sReturn.Substring(0, sReturn.Length - 1);
                    }
                    sReturn += " "
                               + "lFrames:" + this.lFrames
                               + "; lFramesCached:" + this.lFramesCached
                               + "; lFrameNow:" + this.lFrameNow
                               + "; sFileExt:" + this.sFileExt
                               //+"; sPathFile:"+this.sPathFile
                               + "; sPathFileBaseName:" + this.sPathFileBaseName
                               + "; bFileSequence:" + this.bFileSequence.ToString()
                               + "; iEffects:" + this.iEffects
                               + "; iMaxEffects:" + this.iMaxEffects
                               + "; iSeqDigitsMin:" + this.iSeqDigitsMin;
                    if (gbFrame != null)
                    {
                        try {
                            sReturn += "; gbFrame.iPixelsTotal:" + gbFrame.iPixelsTotal
                                       + "; gbFrame.iWidth:" + gbFrame.iWidth
                                       + "; gbFrame.iHeight:" + gbFrame.iHeight
                                       + "; gbFrame.iWidth:" + gbFrame.iWidth
                                       + "; gbFrame.Channels:" + gbFrame.Channels();
                        }
                        catch (Exception exn) {
                            RReporting.ShowExn(exn, "anim ToString(true)", "accessing gbFrame");
                        }
                    }
                    sReturn += ";}";
                }
            }
            catch (Exception exn) {
                RReporting.ShowExn(exn, "ToString(" + bDumpVars.ToString() + ")", "saving dump info");
                sReturn = "{Exception error dumping anim vars}";
            }
            return(sReturn);
        }