graphic

Flood fill algorithm

六月ゝ 毕业季﹏ 提交于 2019-12-24 07:18:13
问题 im working in a simple graphical library in C with turbo C++ because im developing a very primitive version of a paint style program, everyting works well but i can´t get the flood fill algorithm to work. Im using the 4 way flood fill algorithm, first i tried with the recursive version but it only work with small areas, filling large areas make it crash; reading i found that implement an explicit stack version of it solve the problem but i don´t really see it. I have developed a stack like

How to start new graphics window AND/or graphics page in R

一世执手 提交于 2019-12-24 01:16:21
问题 I have a conundrum... I created a function that will plot 11 plots arranged as 4x3 (i.e., mfrow=c(4,3) ) plots per device window. However, I want the function to do this multiple times with different inputs, thus generating multiple pages of 11 graphs each. The issue is that since I have one "empty" slot per page (12 - 11 = 1), I have to tell the code to start each iteration of plotting on a new window. I've done so by explicitly adding the windows() function directly into the function. This

Unity 5 crashes under Mac OSX Yosemite

Deadly 提交于 2019-12-23 20:14:41
问题 Did someone have this problem for Mac OSX Yosemite. Project size is over 250Mb after build. Computer params: MacBook 13 i7 CPU, 16Gb RAM, 1,5GB GPU EDIT: The full crash log from Mac OSX Screenshot of some crash log: The full crash log from Mac OSX 来源: https://stackoverflow.com/questions/30145042/unity-5-crashes-under-mac-osx-yosemite

Display to GUI and Save to Disk with a Single Object/Variable [duplicate]

早过忘川 提交于 2019-12-23 06:28:09
问题 This question already has answers here : Java Passing 2D Graphic as a Parameter (2 answers) Closed 3 years ago . I'm struggling a bit trying to understand how to effectively use java image objects. I have a very simple program which draws an image and then saves that image to the disk. public class myBrain { public static void main(String[] args) { JFrame lv_frame = new JFrame(); lv_frame.setTitle("Drawing"); lv_frame.setSize(300, 300); lv_frame.setDefaultCloseOperation(JInternalFrame.DISPOSE

Custom button: glass effect

ぃ、小莉子 提交于 2019-12-23 05:13:30
问题 I need to create a custom button graphic with a border, a gradient background and a glass effect: I don't want to use 9patch or code a custom class, just xml (shapes, layers, ...). Here the XML code I use to draw the button (it doesn't not include the "glass effect" yet!): <layer-list> </shape> <!-- item to draw the inner border and the background --> <item> <shape> <stroke android:width="4px" android:color="#5f87aa" /> <corners android:radius="10dp" /> <gradient android:angle="270" android

This square I'm animating is leaving a trail behind it, can anyone work out why?

泄露秘密 提交于 2019-12-22 10:09:56
问题 Thanks for checking out this Question. I think I've just about scratched through my skull in frustration. So what I've got is a 'JFrame' containing a 'JPanel'. The 'JPanel' contains a little colored Square which is supposed to move X pixels whenever I click the window. Well, essentially everything behaves as it should, with one exception. When the blue square moves to the right, it leaves a trail of other squares behind it. It is not supposed to leave the trail, however, when I re-size the

Is Intel based graphic card compatible with tensorflow/GPU?

十年热恋 提交于 2019-12-21 07:08:36
问题 Is this graphic card compatible with tensorflow/GPU ? *-display description: VGA compatible controller product: Haswell-ULT Integrated Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 09 width: 64 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:44 memory:c2000000-c23fffff memory:b0000000-bfffffff ioport:7000(size=64) 回答1: At the moment no. Only Nvidia GPUs and

save an image as a bitmap without losing quality

∥☆過路亽.° 提交于 2019-12-17 19:54:06
问题 I had a problem of printing quality and I described it in this link : enter link description here I tried many different solutions that helped other guys with similar prob but they don't work for me because I have a new prob of saving image as bitmap(with low quality) finally I decided to ask my current question , because as u see in above link , my prob starts after saving the image in system(96dpi) and restoring it . but I have no way so I'm looking for a way that make it possible to save

Labels along x axis disappear when using expand=c(0, 0)

时间秒杀一切 提交于 2019-12-13 04:24:31
问题 I've a question regarding to the labels of the x-axis. Assume I've the following plot: p <- ggplot(long_form_q, aes(reihe, variable)) + geom_tile(aes(fill = value), colour = "white") pneu <- p + scale_fill_gradient(low = "white",high = "steelblue", limits= c(1,3), breaks=c(1,2,3)) + geom_text(aes(label=long_form_textq$value)) + theme(axis.title.x = element_blank(),axis.title.y =element_blank()) + theme(axis.text.y = element_text(size=18, color = "black"), axis.text.x = element_text(size=14))

graphics library on lua

偶尔善良 提交于 2019-12-12 15:15:10
问题 Currently I am working with lua on embedded platfrom, and I faced the next problem - I need some open-source graphic library written in lua. Is there any existed library which match these requirments? Thank you on advance. 回答1: I need some open-source graphic library written in lua. Such a thing not only does not exist, it is not actually possible to write one. The Lua runtime does not provide access to the low-level platform-specific details that would be required to actually display