I am trying to add text on an image using the <canvas> element. First the image is drawn and on the image the text is drawn. So far so good.
But where I am facing a problem is that if the text is too long, it gets cut off in the start and end by the canvas. I don't plan to resize the canvas, but I was wondering how to wrap the long text...
Hi !
I'd like to ask if there is any possibility to draw on WPF Canvas with some kind of a Graphics type providing methods like: DrawLine, DrawPath etc.. (as it was in .NET 2).
I know there's a lot of stuff like storyboards etc.. but I'm planning to do all the drawing in code behind and to have just 1 Canvas in WPF without any child ...
Hello,
I need to display a text in 3D using vml/canvas/svg and do some transformation to the shape of the text like the effect of Ctrl+T in photoshop, even align a line of text to a curve. For example, transform a normal text to a rotated, trapezoid/quadrilateral shape.
So, is there a way to convert text to shape first?
The only thi...
Hello. I'm new to Android application development and I'm currently experimenting with various UI ideas. In the image below, you can see a vertically scrolling list of horizontally scrolling galleries (and also textviews as you can see). I'm also doing some matrix and camera transformations which I will come to in a minute.
For the b...
I'm looking for a way to determine the optimal X/Y/Z rotation of a set of vertices for rendering (using the X/Y coordinates, ignoring Z) on a 2D canvas.
I've had a couple of ideas, one being pure brute-force involving performing a 3-dimensional loop ranging from 0..359 (either in steps of 1 or more, depending on results/speed requiremen...
My android app draws a chart on a Canvas. It works fine in the simulator. On a real device the chart is clipped to the left 1/5 of the screen. I've tried:
canvas.clipRect(0, 0, canvas.getWidth(), canvas.getHeight(), Region.Op.REPLACE);
to clear the clipping. Am I missing something? Does layering have anything to do with this?
Tha...
How would you go about mapping mouse coordinates to world coordinates in a 2d context?
For example, you have an image which you can drag. Next, you apply a rotation to that image and redraw it. Now when you drag the image it does not get translated correctly. For example after rotating 90 degrees, dragging up would cause the image to t...
I have an application with heavy use of canvas (dinamyc created, circles, squares, a brush pen, some kind of online microsoft paint). I am searching for the best compatible canvas js library for supporting IE7+.
Any suggestions? i tried excanvas.js but I didn't get the same results as i use to see in firefox.
...
Now that there are a couple of neat canvas demo's of both classic platform and even 3D fps games in HTML5, the next step might be to try developing a multiplayer HTML5 game. HTML5 socket support makes this relatively straight-forward, but with client-side source being viewable by anyone in the browser, what are some solutions for basic g...
Been banging my head against this one for a while, and figured I'd turn to the experts for some advice.
I've made a jQuery snippet that grabs the values from a table and plots them in a line graph on a canvas element (also generated by the JS). All's well in Firefox and Chrome, but Safari and Opera aren't displaying the plotted points. ...
It seems that even if you set the access-control-allow-origin header to allow access from mydomain.org to an image hosted on domain example.org, the canvas' origin-clean flag gets set to false, and trying to manipulate that image's pixel data will trigger a security exception.
Shouldn't canvas' obey the access-control-allow-origin heade...
Hi dear community!
I need draw some lines/circles/rect/etc from ruby into something like canvas.
I tried wxRuby and fxRuby but they are have no good examples to draw simple lines.
Just tried to install qtruby on Windows and its fall cause of some number of errors.
So:
1) Which API for ruby to draw on canvas I need?
2) Give me a litt...
Hello everyone!
I encounter this problem when displaying text on SurfaceView, some chars can climb up on others, code is here:
private static void fakeDraw(Canvas c)
{
Paint mPaint = new Paint();
int color = 0xff000000;
mPaint.setColor(color);
mPaint.setStrokeWidth(2);
mPaint.setStyle(Style.FILL);
mPaint.setAnti...
Hi,
I am in the process of devloping a facebook canvas application in php and FBML, and am having issues when it comes to setting up authorization for the application. I basicly do not kno how to go about it, or what the best method is.
I have been searching around on the internet most of the day but either stummble on old API things, ...
I'm having strange issues with text on a canvas when using an iPhone or iPad.
Either the text gets drawn properly (rarely), or it gets drawn upside down, or it doens't get drawn at all.
When the text does manage to get drawn, it is wiped when the iPhone/Pad is rotated.
I have the following code. It seems that I can only get the text to ...
I want to add the border off canvas using C# not XAML
How can i achieve it?
...
I have a very large html canvas element covering a solid background. I would assume that a lot of cpu could be saved when scrolling/panning if the browser did not blend the canvas to elements behind it (in this case, a solid color).
Is it possible to remove the canvas alpha channel? Should this be left up to browsers to detect and optim...
Without any extension library, is it possible to have multiple layers in the same canvas element?
So if I do a clearRect on the top layer, it will not erase the bottom one?
Thanks.
...
Hello!
I recently learned how to put the Image in canvas from code behind, i took the width and height of all images from database at run time. the margin of all the images is the same as i want but they do not look parallel. Please help me figure out how can achieve it.
Thanks in advance! Best regards, shashank
private void LoadPrevi...
So I am using the Flotr prototype extension library to draw a simple line graph.
The line graph appears fine when I'm viewing the site in the browser however when I go to print this page the print preview shifts everything off to the right, and displays some html relating to the canvas tags used to draw the graph, something like this:
...