Programming :: How To Re-direct Image

Feb 17, 2009

How to re-direct image

View 1 Replies


ADVERTISEMENT

Programming :: Re-direct The Output Within An Awk Script?

Feb 27, 2011

I need to re-direct the output within an awk script, but not to already known, fixed filenames. The output file names depend on values of the fields. For example (the actual problem is surely more complicated), if, on a given line, the second field is DATA, the third is 1984, I would like to print some information in a file called output_DATA_1984. This could/would change in the following line of the same input file. Such things are pretty easy in bash, put I cannot do it in awk, as I can only find manual references for redirecting output to fixed filenames between double quotes.

View 2 Replies View Related

Programming :: How To Do A Direct Memory Access

Jul 26, 2011

I have a single board computer previously running DOS. I recently made Linux running on it. Now that the system is running Linux, I have to translate the code that was supported by DOS. The code has segments that allow direct access of memory mapped registers through the macro _MK_FP and do read/write. I have read that where DOS allows this kind of direct memory access, Linux does not. Is there a way to do this in Linux?

View 6 Replies View Related

Programming :: PHP To Direct LPT Port Print?

May 31, 2011

Any one using php program to direct lpt port print command, now i am creating one programe for mini shope that system having citizen CT-S4000 model.

View 2 Replies View Related

Programming :: Direct Standard Output From Find Command?

Mar 26, 2010

I'm trying to pull out sections from a bunch of files. For one file, I use:

Code:
sed '/string1/,/string2/ !d' <filename.ext >newfilename.ext
to pull out everything between two strings in the original file and put them in a new file.

[code]....

View 3 Replies View Related

Programming :: First Image Will Display On The Page, And When A User Puts Their Cursor Over It, Then It Will Load Image 2?

Nov 24, 2010

I have just exported 3 png files out of gimp for a html document I'm working on right now, and they are all almost the same, except I need each to load when the user does something. So the first image will display on the page, and when a user puts their cursor over it, then it will load image 2. When they press it, it loads image 3.

View 1 Replies View Related

Programming :: Write Shell Script That Adds An Extension ".new" To All The Files In A Direct?

May 28, 2010

How to Write a small shell script that adds an extension ".new" to all the files in a directory.

View 2 Replies View Related

Programming :: Image Rescaling Using Sdl?

Mar 25, 2010

how can i do image rescaling in sdl. i m receiving the RGB image of 640*480,i have to change it to 352*288 while displaying in sdl...is there any direct api to change it.

View 1 Replies View Related

Programming :: How To Obtain Image From ZImage

Aug 6, 2010

I have obtained zImage from uImage by using this script http://buffalo.nas-central.org/wiki/...ract_an_uImage

Then I used the zlib library from www.zlib.net and the accompanying zpipe.c file to uncompress zImage but I am getting this error

zpipe: invalid or incomplete deflate data

Am I on the right path? My aim is to obtain completely uncompressed Image.

View 8 Replies View Related

Programming :: Extract Metadata From Image

Mar 13, 2009

I am trying to get the metadata out from an image file in python. I have tried using PIL but it does not give me the data I am looking for (mostly just got a bunch of hex code) and I have no idea how to use ImageMagick, the python module is poorly documented and I can't find any examples on the net.The info I need is stuff like camera model, if flash was used, focal length, exposure time, date, etc.. pretty much the same info I get when I look at the "Image" tab on properties in Nautilus on Ubuntu.

What I am doing is writing a script that will iterate through a lot of pictures and put all this metadata into MySQL. I chose python since it is simple and I am familiar with it. But I can't find a good way to get that metadata from within python.

View 2 Replies View Related

Programming :: GTK - Load Image Or Display In Window

Jan 11, 2010

I am trying to write a small gtk+-2 program to display whatever image it is given and I was wondering if anyone out there has done something similar. I am not too familiar with writing programs for gtk and its been a while since I've fiddled with C. I went over the tutorial for gtk and it seams pretty easy to get a window to display, but I do not see anything that refers to loading an image or displaying it in the window. I am wondering if this can be done purely with gtk or will I need to use some type of image library like imlib2?

View 3 Replies View Related

Programming :: Having Trouble Receiving Image In Android

Feb 19, 2011

I'm trying to send an image (which can vary in file size) from a python server to an android client . I'm not getting any errors and the file is being created client side however it always seems to fall short of the total file size. I have tried many different options in regards to input streams and buffer sizes but I have had no luck.

View 1 Replies View Related

Programming :: Java: Referencing Image Within Package

Jan 30, 2009

I am running into a small bit of difficulty with images I want to use in a Java program, keeping them bundled with the program in a JAR file and accessing them within the package.For those who are thinking it, this is definitely not homework.In my program, I have several images I would like to use on buttons on a toolbar.I have Googled, and I found something that comes close, but it deals with fetching images from a URL - nothing that deals with local files, more specifically, local images kept inside of a JARchive.

View 3 Replies View Related

Programming :: Java: Set Background Image JFrame?

Jul 19, 2011

I am learning some Java programming, and I've run into a problem. I am trying to set a background for JFrame, so that I can put text and buttons on it. I've tried searching the internet, and the only code that I found that was a full code (I lost it, and don't remember the link) had so much other stuff, such as text and buttons, that I couldn't find the part I needed.

View 4 Replies View Related

Programming :: Javascript Image Sliding Direction?

Jun 2, 2010

im trying to learn javascript. so i choose to start out making a image slideshow banner that auto scrolls on load no special buttons. so since i had no idea were to start i found code that was free to use commercial and non commercial and ill be able to change it. heres that code:

Code:
var SLIDETIMER = 3;
var SLIDESPEED = 3;

[code]....

View 2 Replies View Related

Programming :: Pasting A Png Image On Another Through CAIRO Library?

Mar 3, 2010

I could easily paste images on each other in Python through PIL (Python Imaging Library)
Now I need to use Cairo with C++ for the above purpose.I have referred the following but couldn't ge

View 5 Replies View Related

Programming :: Load And Show Image In Web Page?

Feb 27, 2010

I did a perl/cgi script for uploading image. The script works, image is iploaded in upload directory, but the problem is: How can I to load and show image in web page?

View 12 Replies View Related

Programming :: [HTML/CSS/Javascript] Moving Background Image?

Jun 10, 2011

I am trying to set up a webpager that contains a background of the skylouds uperimposedin the center will be an image of an airplane with a transparent background.I want the sky to scroll continuously to the left behind the airplane. I am having problems with the background not being visible, not moving as expected, the airplane not being visible, and just disappointment in general.I think the background of a div will not be visible if there are no internal contents because it will be sized to zero. So I introduced another transparent image to force the size of the main div. Still no joy.Here is my code. Note that I don't have my timers set up yet, just a button to test background movement.

Code:
<!DOCTYPE html>
<html>

[code]...

View 2 Replies View Related

Programming :: Access To Multi-Partitions Disk Image

Jan 30, 2010

I have a 2GB file which is a dd image of a block device. The block device (a USB-connected flash memory) contains multiple partitions, and therein lies the problem. I want/need to access the various partitions in the image file, but need to do this without actually using a physical flash memory device. If the image was that of a single partition, I could simply mount it on a loop device, and access the filesystem as necessary. However, I can find no kind of virtual block device upon which to write/mount the image.

I've searched the net exhaustively for anything that would seem to allow me to do what I need, but without even a sniff of success. Sadly, I have seen bits of information that suggest "you can't get there from here". Even the outstanding dd tutorial by AwesomeMachine on LQ didn't help. Anyone know of a kind of virtual block device on which a multi-partition image can be written and mounted? Or any other way I can access individual partitions (with various filesystem types on each) and then re-assemble them back to a single image?

View 2 Replies View Related

Programming :: Copying A Binary Image File To The Framebuffer?

Jul 14, 2010

I'm running Linux version 2.6.33.4 on an ARM9 and can successfully copy directly into the framebuffer using the command:

Code:
cat /usr/myfile.bin >/dev/fb0

I converted myfile.bin from a 640 x 480 x 24 bmp.

What I'd like to do is to have the ability to dump .bin image files directly into the framebuffer from a C program without shelling out to a cat command.

View 3 Replies View Related

Programming :: Gimp Commands To Edit Small Image?

Jul 20, 2010

I have a few small still images of around 300 bytes each that I created under Windows many years ago, I'd like to:

1) change the colour of some pixels on each and
2) make them the exact same size but I do not want to learn Gimp to do this since I have no other use for it.

Could someone show me the sequences of commands in Gimp GUI that will do the job?

View 4 Replies View Related

Programming :: Make An Image In Drawing Area Move?

Feb 1, 2010

I need to make an image in drawing area move. I have a GdkPixmap which stores image of the drawing area. How can i copy a rectangle part inside GdkPixmap to other coordinates?

View 1 Replies View Related

Programming :: Use ZIP Recurssive To Only Make A Virtual Image Of A Folder?

Feb 11, 2010

This would eventually use some coding to make it afterwards in a format : in this format:

Quote:

AUTORUN.INF 99 1999.10.28 18:56.58
CLUF.TXT 19979 2000.1.27 7:17.18
DTPSTUB.EXE 24576 1999.8.4 0:15.52
EBE00.CD1 0 1999.10.28 18:57.0
EULA.INI 749 2000.1.12 7:14.56

[Code]...

View 1 Replies View Related

Programming :: Write Project To Grab UI Into A Image Bitmap?

Mar 28, 2011

The Project is for writing a generic program which extracts list of applications that is running on Unix, and for each application, determine if it has a corresponding graphical UI interface, is so, the program should be able to grab the UI into a image bitmap. The program should be able to run in any Unix UI framework, such as CDE, KDE, X, Motif, et al.

View 2 Replies View Related

Programming :: PHP URL Get Page Image From Remote Server Without Errrors?

Apr 11, 2010

I can get a dynamic image to display in my webpage<td><img src="<? echo image.php" ;?>"where image.php is some ones example that outputs some characters to screen.All works fineBut the site is ssl,and It wont load the "foreign" object for security reasons.I was wondering I cURL could trick the browser into thinking that the image source is still on the same serverlike

<?php
$remote = 'https://example.com/image.php';
curl_setopt($ch, CURL_SSL_VERIFYPEER,0); // for testing

[code]....

View 1 Replies View Related

Programming :: Recommend A Simple Png-supporting Image Library?

May 14, 2011

I want to build a simple OCR program and I was wondering what library to use. The images are saved on my hdd as colour .png files, i won't be using any effects on them but I will be working with pixels a lot, so direct access to them would really be great.So I was curious if there's a lib that provides direct access to individual pixels and pretty much nothing else (libpng, devIL or QImage from qt are all good but each has it's downfalls).

View 8 Replies View Related

Debian Programming :: Analyze Image Or Screen For Existence Of A Color

Jan 4, 2014

I have a problem for which I imagined a radical solution. Okay, I have a script that uses Alltray's "menu" feature as an interface. It's working greatly, EXCEPT sometimes lxpanel (the panel and tray of LXDE) has a hiccup and restarts, at which point the alltray menu is still running, but the icon is gone from the tray.

I want to somehow test the screen for the existence of a color, a color that is likely only to exist in the icon I've chosen for the chat menu. If the color exists on my screen, then the script can continue to do nothing, but if the color doesn't exist, then that means the alltray icon with my custom icon has disappeared, at which point I should have my bash script close the alltray process and start it again.

How to accomplish the checking of my screen for the existence of a particular color? To simplify, I already have simple screenshot scripts (scrot is good for it), so it would be fine if I could simply analyze an image.

View 6 Replies View Related

Programming :: Creating Image Viewer Window Using Python And GTK Widgets

Jul 7, 2010

I'm a total newbie in Linux and only have limited experience of programming - in Hypercard, Javascript and some Python on the Mac platform. Now I want to get started with high-level programming and scripting on Ubuntu 10.04. The project I have in mind is fairly simple: I want to create an image viewer window that I can bring up on a RAW image file in Nautilus - with the help of dcraw, to inspect the image at 100% without going into a separate application.

The viewer should have a button that if clicked, would then convert the file to a TIFF, again using dcraw. That's it, that's all there is to it. My initial impression is that I should be able to achieve this using Python and GTK widgets. Am I right? How can I find the commands and structures I will need to work with?

View 8 Replies View Related

Programming :: VBA / Excel - Looping Through Image Controls Based On Cell Contents?

Jun 28, 2011

I have an Excel Spreadsheet which reports upon weekly performance. One portion of the worksheet looks at week over week increases /decreases. I've placed a number of image controls (15 in Total) next to cells which calculate week over week change. The image controls simply display an image depending on whether the value of the adjacent cell is positive or negative. So, here is my basic working IF statement:

Code:

Private Sub Worksheet_Change(ByVal UpDown As Range)
If Range("J26") > 0 And IsNumeric(Range("J26").Value) Then
Image1.Picture = LoadPicture("C:path oup_arrow.gif")
ElseIf Range("J26") < 0 And IsNumeric(Range("J26").Value) Then

[code]....

As you can see, this is pretty simple. What I'd like to do is find a way to loop through all 15 controls and avoid having 15 IF statements run on the Worksheet_Change() event. The cells containing the week over week values are all in the same column, but not continuous. Involved cells are: ("J26", "J27", "J33", "J34", "J35", "J36", "J37", "J38", "J39", "J40", "J42", "J43", "J44", "J45", "J46")

View 6 Replies View Related

Programming :: How To Show The Full Resolution Image At Clicking On Thum-nail

Dec 7, 2010

There are 5 copies of the same images are placed in a folder i.e. large(1024*768),medium(500*375),small(240*180),thu mnail(75*75),square(100*50) in size....

The following code upload number of Geocoded images(square size) when the page loads.I want when someone click on the any Geocoded image on the page ,it should show the large image(1024*768) of the same.And further click on the large image it must show again the square size image of the same.

Following is the actual code.It is in .js file.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved