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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Support for SVG

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ahasoft Posted - Feb 17 2019 : 09:05:06
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?
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 27 2019 : 17:41:48
Nice. Nice demo too.

Looks like the quality looks good even with larger previews.

Nigel
Xequte Software
www.imageen.com
w2m Posted - Feb 27 2019 : 11:16:50
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
w2m Posted - Feb 21 2019 : 09:44:09
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
xequte Posted - Feb 20 2019 : 14:39:36
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
w2m Posted - Feb 20 2019 : 11:05:57
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
xequte Posted - Feb 18 2019 : 01:51:11
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
ahasoft Posted - Feb 17 2019 : 09:11:17
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?