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
|
// 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)
|
// (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.
|
// the next section of code where docversions are processed.
|
||||||
FolderInfo fi = FolderInfo.Get(1);
|
FolderInfo fi = FolderInfo.GetTop();
|
||||||
DropDownNode topnode = null;
|
DropDownNode topnode = null;
|
||||||
int cntnd = 0;
|
int cntnd = 0;
|
||||||
while (fi.ChildFolderCount > 0)
|
while (fi.ChildFolderCount > 0)
|
||||||
|
@ -5,18 +5,20 @@ using System.Data;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
namespace Volian.Controls.Library
|
namespace Volian.Controls.Library
|
||||||
{
|
{
|
||||||
public partial class PreviewROImage : DevComponents.DotNetBar.Office2007Form //Form
|
public partial class PreviewROImage : DevComponents.DotNetBar.Office2007Form //Form
|
||||||
{
|
{
|
||||||
public PreviewROImage(string filename, string title)
|
public PreviewROImage(byte [] image, string title)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Image.GetThumbnailImageAbort myCallback =
|
Image.GetThumbnailImageAbort myCallback =
|
||||||
new Image.GetThumbnailImageAbort(ThumbnailCallback);
|
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,
|
SizeF sizef = new SizeF(bm.Width / bm.HorizontalResolution,
|
||||||
bm.Height / bm.VerticalResolution);
|
bm.Height / bm.VerticalResolution);
|
||||||
// 747 & 535 is the size of the image window (roImage).
|
// 747 & 535 is the size of the image window (roImage).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user