How do I generate a list of lines to draw if I have pixel data for an image, so I don't have to draw every pixel? Any language will do, although I listed what I have a working knowledge for. C is ok as well. There was a limit to how many tags I could choose. Also, you can just point me toward an algorithm.
...
Hi all,
I have to give functionality to select photos by the user.
I have used this.
ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
Now I have to restrict user to select only photos and i want videos to be not displayed on the list. Or somehow user should not select video at all.
Please suggest some way out.
Than...
Div 'canvasesdiv' element contains three HTML5 canvases.
<div style="position: relative; width: 400px; height: 300px;" id="canvasesdiv">
<canvas width="400" height="300px" style="z-index: 1; position: absolute; left: 0px; top: 0px;" id="layer1" />
<canvas width="400" height="300px" style="z-index: 2; position: absolute; left: 0p...
I've been trying to convert my powerpoint presentations into individual images on a Linux server. I tried to use Google's API but because of a bug it only outputs one image. How can I do this?
...
I'm trying to get the pixel data from a WPF BitmapSource object. As I understand, this can be accomplished by calling its CopyPixels method. This method needs a stride parameter, which I don't know how to obtain. As far as I know, stride is value that's used when stepping in the array during reading or copying. What would be an appropria...
Hi everyone,
How can i change my profile picture in this site?
...
I have a lot of images on my website, they are pulled from an image server onto the main server when requested to save disk space at my hosting server.
To achieve this I have an entry in my .htaccess file that basically internally redirects people from /images/image.jpg to download.php which checks to see if the file exists. If the fil...
hi,
I have create a bitmap. it's width 500px, and height 500px..
And i have an image. it's w : 300px, h:300px;
i want to set image to bitmap 500px, 500px without space or black background.
Could u help me pls.
Ty.
...
I have a screen shot I take in my mobile app. The screen shot takes about 32 KB when saved as a png on a disk.
I am sending these to a central SQL Server and 32 KB is too big for that amount of times I will need to store that screen shot (approx 2500 times a day).
Is there any kind of trickery that I can do to get it to save smaller?
...
I've got a numpy array in Python and I'd like to display it on-screen as a raster image. What is the simplest way to do this? It doesn't need to be particularly fancy or have a nice interface, all I need to do is to display the contents of the array as a greyscale raster image.
I'm trying to transition some of my IDL code to Python with...
I created a separate project and activity that downloads an image from a URL, converts it to a Bitmap, and then uses a FileOutputStream to save that file to the SD card. When in the separate project and free-standing activity, this worked fine, and I could see that the image is stored on the SD card.
public class PictureDownload extends...
I am trying to get an image to appear next to a menu item but it isn't working.
In order to make this as simple as possible, I have created a very simple example below that highlights the problem:
import pygtk
pygtk.require('2.0')
import gtk
class MenuExample:
def __init__(self):
window = gtk.Window()
window.set_...
My iPhone app uploads pictures to the user's Facebook account, and they are automatically placed in the app's photo album on Facebook.
In the majority case, the user's wall is also automatically updated to denote that the photo was recently updated. But I dont want this, because I prefer to make a separate wall post with a link to the ...
Hi,
Like many people I've been doing image preload for a long time, but not always very rationally. So I've come up with this short list of thoughts about the right way to preload images with javascript.
An image preload script should be executed as soon as possible. It should be placed at the top of the HTML (in the HEAD section), un...
Hi, I'm having difficulty with building a HTML email. I currently have converted my entire email to an 8 row table in the below order:
Header (image)
Date Field
Content Field
Content Base (rounded bottom image)
Footer top (rounded top image)
Footer
Footer Base (rounded bottom image)
As you can see, four of these fields have an image ...
I have a PNG file that is 32x32 pixels. I use 8 of these as drawables in a row for my app. These drawables are not in the hdpi, mdpi, or ldpi folders. I’ve found that when starting any of the 3 standard size emulators, the screen view with all 8 drawables looks pretty much the same.
I note that the ldpi emulator I’m using (QVGA) has ...
On my site:
http://elektrikhost.com/
When you try and click on a link, they are disabled. I think it is because of the 2 images that are at the end of the navigation bar. I tried to remove the images from the navigation but then the navigation falls apart. This is a site for a client and I must have those images in.
How can I get this ...
I have an image like: img src="" class='listPartialLoader' alt='loading'
I am assigning the 'src' value with data from an ajax call. Some times if the image is not found I want to add a default image path like"Images/default.jpg". But how can I check whether the image is exist or not using javascript? (Basically I want if the image is ...
Hi guys,
I have written some matlab code for image analysis that searches for clusters in an image and that builds an adjacency matrix for those clusters, discribing which clusters are touiching eachother in the image.
I can use this adjacency matrix to derive a graph.
For completion of my algorithm I would now have to mine that graph...
I have an url to the image, like $var = http://site.com/image.png
How do I get its dimensions to an array, like array([h]=> 200, [w]=>100) (height=200, with=100)?
...