graphics

Unity blurry and pixelated sprites in editor (no pixel art)

给你一囗甜甜゛ 提交于 2019-12-23 03:31:22
问题 I am currently making a mobile match-3 like game in unity. I have made all the graphics for the gems(the objects with which you make the matches) in Inkscape at 256x256 and exported them(PNG Files) with 90 dpi(also tried with 360 but nothing changed). My problem is that when I run the game in the editor the graphics seem to be "pixelated" and blurry. In my sprite settings I've set Pixels per Unit to 256, checked Generate Mip Maps, I am using Bilinear Filter Mode and the aniso level is 0. I

SVG to SWF Conversion

泄露秘密 提交于 2019-12-23 03:24:17
问题 I need to convert many .svg images into swf format. I can do this be opening the .svg in Adobe Illustrator and exporting to swf but this is very time consuming. Are there any free command line utilities out there that will convert .SVG to .SWF? I have already tried SWFMill with no success. I have also downloaded Ming but cannot compile the c++ source. 回答1: You could try svg2swf. Looks like the Windows binary got updated in 2009 so there's a good chance it'll work. 来源: https://stackoverflow

C++/SDL2 — Rendering A Circle [closed]

a 夏天 提交于 2019-12-23 02:39:09
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Am I on the right track here, drawing a filled circle with SDL2? I figured using parametric equations and a radius tending to zero would work, but it seems really inefficient in terms of processor use. Any other ideas are much appreciated Thanks in advance. //Circle test int

C# - Cannot save bitmap to file

杀马特。学长 韩版系。学妹 提交于 2019-12-23 02:29:24
问题 recently I started working on my project and unfortunately I have a problem. I want to get sqaures 5x5 from one image, count average color of them and then draw a circle to another Bitmap so I can get a result like this http://imageshack.com/a/img924/9093/ldgQAd.jpg I have it done, but I can't save to file the Graphics object. I've tried many solutions from Stack, but none of them worked for me. My code: //GET IMAGE OBJECT Image img = Image.FromFile(path); Image newbmp = new Bitmap(img.Width,

Copy the contents of a JPanel onto a BufferedImage

蓝咒 提交于 2019-12-23 02:17:20
问题 On the first time through, I insert BufferedImage s from a list onto my JPanel from my extended class: @Override protected void paintComponent(Graphics g){ super.paintComponent(g); if (controlWhichImage == 1){ for (BufferedImage eachImage : docList){ g.drawImage(eachImage, 0,inty,imageWidth,imageHeight,null); intx += eachImage.getWidth(); inty += eachImage.getHeight() * zoomAdd; } if (intx >= this.getWidth() || inty >= this.getHeight()){ inty = 0; } The next time I want to copy the contents

Threshold value when converting image to 1bpp?

纵然是瞬间 提交于 2019-12-23 02:16:21
问题 I don't know how to tag this question, please edit if possible. The job: Create an application which can auto-crop black borders in images in batch runs. Images vary in quality from 100-300dpi, 1bpp-24bpp and a batch can vary from 10 - 10 000 images. The plan: Convert image to 1bpp (bitonal, black/white, if it isn't already) and after "cleaning up" white spots/dirt/noise find where the black ends and the white begins, these are the new coords for the image crop, apply them to a clone of the

Graphics.RotateTransform not working

£可爱£侵袭症+ 提交于 2019-12-23 01:54:32
问题 I'm not sure why it's not working... Bitmap img = (Bitmap)Properties.Resources.myBitmap.Clone(); Graphics g = Graphics.FromImage(img); g.RotateTransform(45); pictureBox1.Image = img; The image is displayed, but it is not rotated. 回答1: You are rotating the graphics interface, but not using it to draw the image. The picturebox control is quite simple, and may not be your friend here. Try using g.DrawImage(...) see here to display the image instead 回答2: One uses a Graphics instance to draw.

Checking if clicks are within a graphic object [Python Graphics Module]

大憨熊 提交于 2019-12-23 01:46:10
问题 Here is the module I'm using: http://mcsp.wartburg.edu/zelle/python/graphics/graphics.pdf I want to see whether a user's clicks are within a shape or not. I used the in operator, but I know that is incorrect. Below is a chunk of my code: win = GraphWin("Click Speed", 700, 700) theTarget = drawTarget(win, random.randrange(0,685), random.randrange(0,685)) while theTarget in win: click = win.getMouse() if click in theTarget: print("Good job") I left out the code that draws theTarget shape

Sankey bar graphs in R

心已入冬 提交于 2019-12-23 01:36:10
问题 I'd like to make this type of plot in R. There's more detail on the SAS macros to produce this example here: http://www.pharmasug.org/proceedings/2015/DV/PharmaSUG-2015-DV07.pdf Does anyone have any thoughts on how I should go about doing this in R? NOTE: I know how to make standard sankey diagrams with the D3 or google libraries. This question is specifically about the combination of bar graph and sankey diagram that the SAS macros produce. 回答1: Use the library(flipPlots), using the

2D geometric shape vertices coordinates detection

回眸只為那壹抹淺笑 提交于 2019-12-23 01:19:05
问题 I am trying to find the vertices and their coordinates for simple geometric shape using marvin-framework. This is the code I have (based on https://stackoverflow.com/a/25223830/957057) package com.example.marvin; import static marvin.MarvinPluginCollection.floodfillSegmentation; import static marvin.MarvinPluginCollection.moravec; import static marvin.MarvinPluginCollection.scale; import java.io.FileWriter; import java.io.IOException; import marvin.image.MarvinImage; import marvin.image