This commit is contained in:
parent
9edcad0c66
commit
68998360df
@ -272,7 +272,7 @@ namespace Volian.Controls.Library
|
||||
// right before the docversion. Also note that docversions are not displayed
|
||||
// (at least for now - as of 2/14/08), this may change and if so uncomment (& fix/test)
|
||||
// the next section of code where docversions are processed.
|
||||
FolderInfo fi = FolderInfo.Get(1);
|
||||
FolderInfo fi = FolderInfo.GetTop();
|
||||
DropDownNode topnode = null;
|
||||
int cntnd = 0;
|
||||
while (fi.ChildFolderCount > 0)
|
||||
|
@ -5,18 +5,20 @@ using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
public partial class PreviewROImage : DevComponents.DotNetBar.Office2007Form //Form
|
||||
{
|
||||
public PreviewROImage(string filename, string title)
|
||||
public PreviewROImage(byte [] image, string title)
|
||||
{
|
||||
InitializeComponent();
|
||||
Image.GetThumbnailImageAbort myCallback =
|
||||
new Image.GetThumbnailImageAbort(ThumbnailCallback);
|
||||
|
||||
Bitmap bm = new Bitmap(filename); //Bitmap(filename);
|
||||
|
||||
MemoryStream ms = new MemoryStream(image);
|
||||
Bitmap bm = new Bitmap(ms); //Bitmap(filename);
|
||||
SizeF sizef = new SizeF(bm.Width / bm.HorizontalResolution,
|
||||
bm.Height / bm.VerticalResolution);
|
||||
// 747 & 535 is the size of the image window (roImage).
|
||||
|
Loading…
x
Reference in New Issue
Block a user