graphic

Finding coordinates of Koch Curve

时间秒杀一切 提交于 2021-02-19 07:37:40
问题 Sorry for my language since English is my second language. I am trying to convert a straight line into a fractal known as Koch curve. The 2 points of the straight line are given and then I need to create the Koch curve where I divide the line to 3 segments and then make the second segment an equilateral triangle. See http://www.tgmdev.be/curvevonkoch.php. So far we convert the straight line to 4 equally segments, and I need to figure out all the coordinates of the Koch curve. I have thought

android: smooth out edges of random shape bitmap

大兔子大兔子 提交于 2020-05-28 09:25:40
问题 I have an random shape bitmap cut out by user. I want to fade out its borders i.e. contours, so as to make it appear smooth. What should I do? To get the borders and color of every pixel in bitmap, I am traversing it pixel by pixel. It takes long time, still I am ok with it. Is openCV my only option? If yes, can anybody point me towards any tutorial or suggestion for logical approach? 回答1: You can just run a smoothing filter on your shape. In opencv you can use the blur fnnction or

How to change background graphic/theme in splitview on ipad?

不羁岁月 提交于 2020-01-17 01:13:26
问题 I would to get help on changing template/graphic of my ipad app to something similar like this one below. Please give me advices how to get this done. Thank you very much. And this is what I have right now. 回答1: While the more graphic view looks like a SplitView I think it actually is a master view with graphic and two sub views, one containing a toolbar. Both have headers with a graphic background. 来源: https://stackoverflow.com/questions/8250208/how-to-change-background-graphic-theme-in

WordPress navigation with images

[亡魂溺海] 提交于 2020-01-16 07:40:08
问题 I am working on a WordPress site at the moment. Everything is doing fine except my navigation. I don't want to use the standard text and css based navigation WordPress uses, but insert my own navigation with graphic images (PNG files, Can change filetype if necessary though). Does anyone know of any sort of plugin for WordPress that allows you to have images instead of text in the navigation? Regards, Nader 回答1: do you want to have your own css file ? if it is you can just use this to say to

Converting several 2D images into 3D model [closed]

别等时光非礼了梦想. 提交于 2020-01-14 03:21:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I would like to try make software very similar to this - 123dapp.com/catch. I really would like to know the way how to achieve this in for example Visual Studio. If it is even possible. The reason I don`t want to use this software is because I would like to have a program that

Tkinter bind to arc

▼魔方 西西 提交于 2020-01-07 05:41:16
问题 I'm writing a simple noughts - and - crosses game in python using Tkinter and want to have the Os show only when you hover over them. To do this, I know I need to add an event binding, but don't know how because when I create a circle (arc) I don't get an object returned but an id number instead. How can I use this id number to create an event binding? 回答1: Instead of using the ID number to create an event binding, I would recommend using a tag system to go about this. When creating your oval

C# Forms - Using Paint methods?

Deadly 提交于 2020-01-05 12:58:20
问题 In c# forms I have created a new paint method: private void thisPolygon(PaintEventArgs e) { Pen clrBlue = new Pen(Color.Blue, 3); Point[] Wst = new Point[5]; Wst[0] = new Point(20, 350); Wst[1] = new Point(110, 200); Wst[2] = new Point(200, 190); Wst[3] = new Point(210, 275); Wst[4] = new Point(190, 400); Wst[5] = new Point(50, 390); e.Graphics.DrawPolygon(clrBlue, Wst); } Now, how do I call it? I can't make it work, this doesn't work: private void Form1_Load(object sender, EventArgs e) {

I am trying to make ball gradually move

て烟熏妆下的殇ゞ 提交于 2019-12-28 04:32:08
问题 I am trying to make a ball gradually move when you press one of the arrow keys, right now it kind of just teleports. I want it so that you can see it move. Based on this example, I am using key bindings, and there is a variable called delta that causes the ball move by 50 pixels, but like I said the ball just appears 50 pixels in whichever direction the arrow key is you pressed, I want it to be like if you were to kick a ball you can see it get from point a to b. Go to line 89 that is where I

How to make 2D graphic transition in android canvas

十年热恋 提交于 2019-12-24 18:21:58
问题 I have draw a circle using paint and canvas in android . I want to move the circle in some direction, are there any API methods that can be used ? Or do I have to use a loop and changing the position each time? 回答1: Hi you can refer the code below, In onTouchEvent, you can handle directions and move the object. // Tutorial2D.java main activity import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.Window; public class Tutorial2D extends

X11 layer manager

岁酱吖の 提交于 2019-12-24 08:24:58
问题 I have multiple applications each having a GUI from a different technology. I need to do this - 1. Create n layers, one for each application, onto which applications draw. 2. Have a layer manager which can perform operations on each of these layers (like re sizing, changing opacity etc. ) and then combine them to form a single layer. Can someone please give an idea as to how I should proceed with this? What APIs might help me into this ? I cant really figure out what should I be searching on