Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Loading and displaying an SVG image.

Author
Message
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 27th Mar 2019 22:25
I once tried to load svg images and bring them to the screen.
Worked better than I expected. Also here NuGet could help me so that my work on it was really minimal.

Here is the code for it.


Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 28th Mar 2019 03:25
Superb!
So svfgdoc.Draw() draws the image and then you convert it to AGKformat and return it
Is that how it works?
Virtual Nomad
13
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 28th Mar 2019 03:51
purdy but, not possible in tier 1 without help from somewhere, right?

MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 28th Mar 2019 11:56
That's exactly how it works.
And yes it is a pure AgkSharp solution.
In Tier1 you have no access to these libraries. Sorry!
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Jerry McGuire
2
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 11th Apr 2019 20:46
pretty cool
AppGameKit 2018.10.10

iMac Book Pro, MacOS 10.14, Xcode 10.1;
iPhone 6, iOS 12; iPad (3rd gen), iOS 9.35; iPad Pro 12'9 (2nd gen), iOS 12.

Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2017;
Ortu
DBPro Master
11
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 12th Apr 2019 16:18
Oh that's handy

I do hope to get back to my agksharp project soon
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Scraggle
Moderator
16
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 14th Apr 2019 17:33
I don't have time for this. But maybe someone else who understands something about c++? There are some c++ libraries that could be used to create such a plugin. Or even integrate it into the Tier2 repository.

For example NanoSVG is under zlib license so there should be no legal problems.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)

Login to post a reply

Server time is: 2019-07-16 09:22:10
Your offset time is: 2019-07-16 09:22:10