ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Support for SVG
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ahasoft

3 Posts

Posted - Feb 17 2019 :  09:05:06  Show Profile  Reply
Hi,

I tried demo and can not examples with SVG viewing, even within Vectorial Demos. I found some talkings about imagemagick.dll. But it's done more than 10 years ago and quality is awful for 2019 year.

What's news about native SVG support?

ahasoft

3 Posts

Posted - Feb 17 2019 :  09:11:17  Show Profile  Reply
Update:

There are Windows Explorer extension to preview SVG files with fast speed and good quality:
https://code.google.com/archive/p/svg-explorer-extension/downloads

Is it possible to integrate its SVG processing with ImageEn?
Go to Top of Page

xequte

38127 Posts

Posted - Feb 18 2019 :  01:51:11  Show Profile  Reply
Hi

I have not tried this extension, but if it uses WIC, it will work if you install it and add SVG as as a WIC format:

https://www.imageen.com/help/TIEImageEnGlobalSettings.WICFileTypes.html

Or load it explicitly via LoadFromFileWIC


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Feb 20 2019 :  11:05:57  Show Profile  Reply
I found this post interesting, so I tried to open svg files after installing the extension.

https://code.google.com/archive/p/svg-explorer-extension/downloads

SVG files can be viewed in File Explorer with fast speed and good quality after installing the extension, but svg images do not open in TImageEnView:

procedure TForm1.Open1Click(Sender: TObject);
var
  iFilename: string;
  iResult: boolean;
begin
  if OpenPictureDialog1.Execute then
  begin
    iFilename := OpenPictureDialog1.FileName;
    IEGlobalSettings().WICFileTypes := '*.svg';
    iResult := ImageEnView1.IO.LoadFromFileWIC(iFilename);
    if not iResult then
      ShowMessage('Can not open ' + iFilename + '.');
  end;
end;

I also tried loading the svg file with TPicture, but it appears that the svg file format is not added to TPicture by the extension so that approach fails as well.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38127 Posts

Posted - Feb 20 2019 :  14:39:36  Show Profile  Reply
Sorry, looks like it does not use WIC.

Bill, can you get the thumbnail using:

uses
  iexShellThumbnails;

IEGetJumboFileIcon( 'C:\test.svg', ImageEnView1.IEBitmap );
ImageEnView1.Update();



Note: In 8.3.0, this will be:

WindowsGetFileIcon( 'C:\test.svg', ImageEnView1.IEBitmap );
ImageEnView1.Update();




Nigel
Xequte Software
www.imageen.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Feb 21 2019 :  09:44:09  Show Profile  Reply
This only gets an icon:

procedure TForm1.Open2Click(Sender: TObject);
var
  iFilename: string;
  iResult: boolean;
begin
  if OpenPictureDialog1.Execute then
  begin
    iFilename := OpenPictureDialog1.FileName;
    IEGetJumboFileIcon(iFilename, ImageEnView1.IEBitmap);
    ImageEnView1.Update()
  end;
end;




Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

w2m

USA
1990 Posts

Posted - Feb 27 2019 :  11:16:50  Show Profile  Reply
procedure TForm1.Open2Click(Sender: TObject);
var
  iFilename: string;
  iResult: boolean;
begin
  if OpenPictureDialog1.Execute then
  begin
    iFilename := OpenPictureDialog1.FileName;
    WindowsGetExplorerThumbnail(iFilename, ImageEnView1.IEBitmap, 256, 256, true);
    ImageEnView1.Update()
  end;
end;


This works in 8.3

See User Demos, page 7 for download and for information about Vector and Raster images and SVG graphics.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38127 Posts

Posted - Feb 27 2019 :  17:41:48  Show Profile  Reply
Nice. Nice demo too.

Looks like the quality looks good even with larger previews.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: