Very cool approach.
I wish we could make this on Xojo. Cross-platform…
http://cocoamine.net/blog/2015/03/20/replacing-photoshop-with-nsstring/
Very cool approach.
I wish we could make this on Xojo. Cross-platform…
http://cocoamine.net/blog/2015/03/20/replacing-photoshop-with-nsstring/
want to have it?
someone could translate into native Xojo.
Or I could just wrap the Objective-C code into plugin.
Very interesting article. I have the chance to be a font designer with the training and tools like Fontographer and Fontlab Studio to create as many Bzier curves as I want, but the approach is very pragmatic and enlightning.
That said, never underestimate fonts already available, such as Wingdings and Webdings on both Mac and Windows, or http://fortawesome.github.io/Font-Awesome/ which comes with free commercial use.
Or on Windows 8, 8.1 and 10 only, Segoe UI Symbol with more graphics than I can count.
[quote=176560:@Christian Schmitz]someone could translate into native Xojo.
Or I could just wrap the Objective-C code into plugin.[/quote]
Well, I’d like to have it as native Xojo, mainly for cross-platform.
I’m only unsure how this would be in Xojo for performances.
I’d like to try porting it to Xojo, if I had the time…
I got it almost to work using only Xojo code:
I will release the source-code when it’s ready.
It will be released on GitHub this evening.
This is the current result, I don’t like the straight lines when it is scaled.
Here is a first beta on GitHub
https://github.com/jkleroy/ASCIImage-Xojo
It doesn’t support colors, and doesn’t support the contextHandler described in the blog post.
If someone has an idea how to implement this in Xojo please let me know.
The repository will be updated throughout the week-end.
[quote=176572:@Massimo Valle]Well, I’d like to have it as native Xojo, mainly for cross-platform.
I’m only unsure how this would be in Xojo for performances.
I’d like to try porting it to Xojo, if I had the time…[/quote]
Well I think if you try you can make stuff run really quickly - sometimes surprisingly so
I’m working on some code that has to decompress a BYTEA field holding an image in PostgreSQL and its all done in Xojo code
Even with 3 MB of data for the image its almost instantaneous
Very nice job Jrmie!
As a suggestion, you can add a color argument to the method and so permit to choose the drawing color (I already tried this and works).
Some possibly Xojo related problems remains:
if you use semi transparent colors, you can get unwanted effects like this:
from my previous experiences with Object2D I found the line ending caps a little bit lousy, that’s why the enlarged versions get, weird. It seems me to recall too that on Windows they draw differently.
Also, don’t forget to ask to add your port here: http://asciimage.org
[quote=177044:@Massimo Valle]Some possibly Xojo related problems remains:
I agree with you Greg,
The issue is that if you want a Retina picture drawn @2x you need to draw it in a Picture using Scale=2, then adapt the alpha channel of the picture.
But when using Scale=2 the straight lines aren’t displayed correctly as seen here (Screenshot from a Retina MBP):
(couldn’t edit my post)
This remembers me on earlier times when you have made data inline in Assembler or C showing a mask or so:
int mask[64] = {
1,0,0,0,0,0,0,1
0,1,0,0,0,0,1,0
0,0,1,0,0,1,0,0
0,0,0,1,1,0,0,0
0,0,0,1,1,0,0,0
0,0,1,0,0,1,0,0
0,1,0,0,0,0,1,0
1,0,0,0,0,0,0,1
};
So what’s new ?
[quote=182114:@Rob Egal]
So what’s new ?[/quote]
Nothing, indeed!
Thought that but it’s still fun to what makes ppl out of it (like Jeremie)