Hi all, I'm a very early user of Daniweb, and after a long break, and I'm hoping to participate a bit more in this forum again. I'm here specifically for some advice before starting a new project of mine. I'm an experienced C++ / Win32 developer, but seem to be having trouble coming up with a good way of encoding AVI videos, or animated GIFs (or both!), in such a way that they will be quick to load and watch on my website. I don't really care about the final video output type, as long as I can upload them …

Member Avatar
Member Avatar
+0 forum 1

If I am given the exact coordinates of three vertices in image-space (as in, the numbers are not integers, but can be rounded to find their location on the screen), how can I determine which pixels are inside the triangle and should be colored? If you look at the diagram below it might clarify what I'm trying to do http://oi47.tinypic.com/eaktwi.jpg As you can see, the pixels which are mostly within the triangle are filled green. How can I do this in code?

Member Avatar
Member Avatar
+0 forum 4

hello everyone, I seek help please to find a program c + + that can read images from different types bmp, jpeg, png and put the pixels values in a vector, modified pixels valus, then saved the picture change to a different location, I inform you that I am working on visual c + + 2010

Member Avatar
Member Avatar
+0 forum 3

Hi I want to get pixel value from picture. Anyone know how to do this? Regard

Member Avatar
Member Avatar
+0 forum 2

I have found a LOT of info on searching the screen for a pixel color, but none of it even remotely definitive (as far as i can tell, because i'm rather noobish) I understand programming on a fundemental level, but I'm new to C++ I'm hoping to figure out how to search a pixel range (ie a box with corners of x=500 y=500 through x=550 y=550) I understand how to handle the variables and the looping but I'm having a hard time figuring out the windows handler/syntax/use of this bit of code (which keep popping up but im too noobish …

Member Avatar
Member Avatar
+0 forum 6

i have a given picture and have to create a picture that is twice as wide as the given picture. For each pixel (x, y) in the original picture, the pixels (2 * x, y) and (2 * x + 1, y) in the new picture should be set to the same color as it. i am not allowed to use any other module( like PIL) so i have to create a picture that is twice width plz help me out here here is what i have so far [CODE][/CODE] import media def widen(new_pic): height = media.get_height(pic) width = media.get_width(pic) …

Member Avatar
Member Avatar
+0 forum 1

Hey guys, I'm looking for a python library that can. 1. Act as a simple paint editor. 2. calculate top, bottom, left, right most points of a picture I'm trying to make a simple handwriting recognition software based on the number of permutations possible for simple endpoints. Example: psudocode for one paramater. [CODE] If Distance From top to bottom / Distance from Left to Right == Statistically significant: paramater = paramater + 1 else: Increase approximation number if approximation number >= 100 Exit [/CODE]

Member Avatar
+0 forum 0

Hi, I have an application with a treeview, with each node(child) linked to a file. I can read the file name and extension, and I want to put icons to the left of the treeview nodes. (see the picture) For example, if the file is .xls, I will put an excel icon, etc. I know I can do this by creating pictureboxes dynamically, but how can I adjust the lines? Because the application will be run in a lot of different computers which have different screen resolutions. e.g. Can I get directly the pixel size of a treeview line?

Member Avatar
Member Avatar
+0 forum 1

The script is used in my newest chrome app [url]https://chrome.google.com/webstore/developer/detail/bomkcodcgmbjjhogdjophonfhgpegoni/[/url] Site: [url]http://codestrix.co.cc/pixels/[/url] The above script is a good to get stated with HTML5 canvas. Much of it is named so as to be self explanatory but any doubts you are more than welcome to post it here.

Member Avatar
Member Avatar
+1 forum 2

I was wondering how I could display more than 256 colors with the VGA color palette. correct me if I'm wrong, but the reason that you can't display more than 256 colors at once is because each byte in video memory corresponds to one pixel on the screen. But because each byte can only hold a number up to 255 (not including 0) you can't reference a color past 256 (the maximum number combinations). Assuming that this is correct, is there a way to extend the video memory so that each pixel uses 2 bytes (video memory size * 2) …

Member Avatar
Member Avatar
+0 forum 9

Hi, I want to move a shape (label) when I press WASD around a maze. I got what I have so far off the net, but I cant figure out whats wrong with it. [URL="http://www.programmersheaven.com/mb/VBasic/223364/223860/re-basic-key-press-question-answered/"]Original code[/URL] [CODE] Public x 1 'This is whats wrong - it says "End of statement expected" when mouse over Public y 1 'the "1" Private Sub Form_KeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer) ' if keypressed is right move the shape three more ' spaces to the right If KeyCode = 68 Then x = x + 3 shape1.Move(x, y) End If ' if …

Member Avatar
Member Avatar
+0 forum 7

Hello, I have to continously update an image based on screen capture. So how can I memorize only the part of the image that changes from one picture to another (from one frame to another)(pixels?)... Think of a remote desktop. It's not a good thing to send a 200K desktop screenshot image [I]to the client[/I] every time because you get a BIG delay and you get to low frames per second. Ideal is to send only the part of the image that changes. I hope you understood what I an trying to do... So how can I detect the image …

Member Avatar
Member Avatar
+0 forum 10

In my projet, I can't find how to determine which image and pixel coordonate when I clicking image in 2 different ScrollArea. The result was showing in statusBar() area. (See screenshot) I put a code in txt file with 2 jpg use with it. Thanks in advance. [CODE] from PyQt4.QtCore import * from PyQt4.QtGui import * import os, sys class MainWindow(QMainWindow, QWidget): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) self.pLabel = None self.Img = QImage() self.ImgPt = [0,0] self.GlobPt = [0,0] self.ImgName = ['1.jpg', '2.jpg'] self.ImgActive = 0 self.imageLabel1 = QLabel() self.imageLabel1.setMinimumSize(800, 800) self.imageLabel1.setAlignment(Qt.AlignCenter) self.scrollArea1 = QScrollArea() self.scrollArea1.setBackgroundRole(QPalette.Dark) self.scrollArea1.setWidget(self.imageLabel1) self.imageLabel2 = QLabel() …

Member Avatar
+0 forum 0

In my projet, I can't find how to determine which image and pixel coordonate at clicking image in different ScrollArea. The result was showing in statusBar() area. (See screenshot) I put a code in txt file with 2 jpg use with it. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

Hello! I am trying to display a FITS image, if your not familiar with the extension its fine (gtk.Image.new_from_file() isn't either). I can get my image data to a numpy array (2D (256x256 to be exact)) I am having the most difficult time getting this into a grayscale image. I've tried gtk.Image() Ive tried pixbufs and pixmaps everything on the web. I'm having trouble making the color scales/maps. Something about visuals? My computer didn't have any that would work (debian linux). I've been slamming my head against the wall for days over this one and It seems like it should …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a pixel array grabbed with [I]PixelGrabber[/I]. I done some computation with it and now I need make a BufferedImage from it. The problem is I can't make it very fast, just slow. I made an Image type object from it then I converted it to a BufferedImages but it's so slow...... To get you mode ideas of solving this, I tell you that I need to send the image over network as PNG compressed... so that's why I need a BufferedImage. I need very fast conversion/image construction... Thanks.

Member Avatar
Member Avatar
+0 forum 14

Hi, I was wondering how I can get the coordinates of a specific color from a window? Is it possible. I did some research, but I only found to get a color from coordinates, but I need it the other way around. Atm I have this, I don't know if it is right, cause I usually program in java. [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace ConsoleApplication2 { class Program { [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32.dll", EntryPoint = "GetDC")] public static extern IntPtr GetDC(IntPtr ptr); static void …

Member Avatar
Member Avatar
+0 forum 5

Hello, I have to update continously an image based on screen capture. So how can I memorize only the part of the image that changes (pixels)... because I don't want to take a scrrenshot every time... Think of a remote desktop. It's not good to send a 200K desktop screenshot to the client every time cause you get a BIG delay. Ideal is to send only the part of the image that changes. I tried to loop through the pixels to see the changes image changes (image.getRGB(x,y)) but it takes quite a long time. So how can I detect only …

Member Avatar
+0 forum 0

The End.