Recent

Author Topic: Vector image  (Read 5894 times)

hosune7845

  • Full Member
  • ***
  • Posts: 159
Vector image
« on: January 02, 2017, 08:58:28 am »
Hello.

I'm finding a Vector image library or component.

I need functions(draw text, copy to raster image, stretch(each size of W,H)).

I test-ed with fpvector library but the library has no stretch function(only scale function)

Anyone know a Vector library, plz let me know.

Thank you.
« Last Edit: January 02, 2017, 09:35:12 am by hosune7845 »

Handoko

  • Hero Member
  • *****
  • Posts: 5506
  • My goal: build my own game engine using Lazarus
Re: Vector image
« Reply #1 on: January 02, 2017, 10:27:44 am »
You may try fpvectorial. It offers support to read, modify and write vectorial images.

Readable image formats: PDF, G-Code (Aviso CNC machine), Corel Draw CDR, DXF (AutoCAD), SVG, EPS, WMF.

Writable image formats: G-Code, SVG (lines, curves, texts, pen colors and width).

I found those info from here:
http://wiki.freepascal.org/fpvectorial

hosune7845

  • Full Member
  • ***
  • Posts: 159
Re: Vector image
« Reply #2 on: January 02, 2017, 10:34:39 am »
You may try fpvectorial. It offers support to read, modify and write vectorial images.

Readable image formats: PDF, G-Code (Aviso CNC machine), Corel Draw CDR, DXF (AutoCAD), SVG, EPS, WMF.

Writable image formats: G-Code, SVG (lines, curves, texts, pen colors and width).

I found those info from here:
http://wiki.freepascal.org/fpvectorial

Thank you.

But I tried and the library seems to have no stretch function same to TImage component(resize each W,H with drawn data)
« Last Edit: January 02, 2017, 10:39:52 am by hosune7845 »

wp

  • Hero Member
  • *****
  • Posts: 13267
Re: Vector image
« Reply #3 on: January 02, 2017, 10:42:01 am »
I test-ed with fpvector library but the library has no stretch function(only scale function)
What do you mean? In fpvectorial you can specify scaling factors for both x and y. This is exactly what "Stretch" of TImage does.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Vector image
« Reply #4 on: January 02, 2017, 05:17:04 pm »
Exactly, just study the standard demo project "fpvviewer", it supports zooming.

zamtmn

  • Hero Member
  • *****
  • Posts: 675
Re: Vector image
« Reply #5 on: January 02, 2017, 08:39:41 pm »

hosune7845

  • Full Member
  • ***
  • Posts: 159
Re: Vector image
« Reply #6 on: January 03, 2017, 06:58:10 am »
I test-ed with fpvector library but the library has no stretch function(only scale function)
What do you mean? In fpvectorial you can specify scaling factors for both x and y. This is exactly what "Stretch" of TImage does.

I couldn't find the function in example.

Could you give me an example?

hosune7845

  • Full Member
  • ***
  • Posts: 159
Re: Vector image
« Reply #7 on: January 03, 2017, 07:00:13 am »
Exactly, just study the standard demo project "fpvviewer", it supports zooming.

I did study the example project.

But I could find zooming, But could not find stretch function. (resize image to left --- right or top --- bottom)

hosune7845

  • Full Member
  • ***
  • Posts: 159
Re: Vector image
« Reply #8 on: January 03, 2017, 07:00:59 am »

 

TinyPortal © 2005-2018