Sponsored Content
Top Forums Programming Xlib - Rotation and interpolation of pixmap - Performance problems Post 302909411 by achenle on Wednesday 16th of July 2014 05:49:27 PM
Old 07-16-2014
How are you creating the "dest" XImage? You should probably manipulate the data sent to XCreateImage directly, before calling XCreateImage() to create the dest image.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

variable interpolation

I've become obsessed with trying to get this to work. As of yet, I am unable to figure it out. Unfortunately, I don't have Linux or UNIX available when I get home. Anyone have tips for me on how I can pass param1 to ID via use of COUNTER and loop? thx. LIMIT=6 param1="999999999" export... (0 Replies)
Discussion started by: egkumpe
0 Replies

2. Programming

problems with drawing in x using xlib

Hi all, I'm currently learning xlib and I've encountered a bizarre mistake: function calls such as XDrawPoint, XDrawLine, etc., don't seem to work; a blank window with nothing in is appears. I believe this has something to do with the window manager I use, fluxbox. After checking the code and... (0 Replies)
Discussion started by: hydronium
0 Replies

3. AIX

Performance and paging problems

... a disk drive to be 100% busy? hdisk0 100.0 1.3K 342.7 1.3K 22.0 PgspIn 651 % Noncomp 75.5 hdisk1 100.0 1.3K 320.2 1.2K 20.0 PgspOut 6 % Client 75.5 It's really slowing down performance on my system and I would like to know what is causing this. ... (2 Replies)
Discussion started by: bbbngowc
2 Replies

4. SCO

CPU Performance Problems on VMWARE

hi We have migrated SCO 5.0.6 into ESX4, but the VM eats 100% of the virtual CPU. Here is top print from the SCO VM: last pid: 16773; load averages: 1.68, 1.25, 0.98 02:08:41 79 processes: 75 sleeping, 2 running, 1 zombie, 1 onproc CPU states: 0.0% idle, 17.0% user,... (7 Replies)
Discussion started by: ccc
7 Replies

5. AIX

AIX 5.3 performance problems

Hello, I encounter some performance issues on my AIX 5.3 server running in a LPAR on a P520. How do I investigate performance issues in AIX. Is there any kind of procedure that takes me to the steps to investigate my server and find the sub systems that is causing the issues? The performance... (1 Reply)
Discussion started by: petervg
1 Replies

6. Shell Programming and Scripting

Interpolation using awk

Hi all, Consider I have a text file containing: 1003 60 1005 80 1100 110 Based on that file I need to create another file which is containing value from 1001 till 1100 which is a linear interpolation between two point (for 1004; 1006;1007 until 1109) and extrapolation based on 2... (7 Replies)
Discussion started by: ardy_yana
7 Replies

7. Shell Programming and Scripting

Hi ! whether it is possible to do interpolation in scripting...

Hi ! Experts... I just wanted to know whether it is possible in scripting...to do interpolation.... if so....have a look on my data file I need temperature and salinity value with a bin size of 0.5 m output looks somewhat like this dep temp sal 0.5 25 0.077 1 25 ... (12 Replies)
Discussion started by: nex_asp
12 Replies

8. Shell Programming and Scripting

An interpolation between two files

Dear all, I always appreciate your help. I am an electrical engineer. I am using a tool for timing analysis of a circuit. I would like to interpolate results from two timing reports at different voltages (0.945V and 0.78V). If voltage is decreased, data arrival time is increased. For... (4 Replies)
Discussion started by: jypark22
4 Replies

9. What is on Your Mind?

MySQL Performance Problems

Just restarted MySQL a few times. There seems to be a problem with MySQL performance because one table (our man page table) is too large and I need to move that table to a new database and out of the main forums DB. That table is over 7 GB, bigger than the rest of the DB combined: ... (14 Replies)
Discussion started by: Neo
14 Replies
XCreateImage(3X11)						     MIT X11R4							XCreateImage(3X11)

Name
       XCreateImage, XGetPixel, XPutPixel, XSubImage, XAddPixel, XDestroyImage - image utilities

Syntax
       XImage *XCreateImage(display, visual, depth, format, offset, data, width, height, bitmap_pad, bytes_per_line)
	  Display *display;
	  Visual *visual;
	  unsigned int depth;
	  int format;
	  int offset;
	  char *data;
	  unsigned int width;
	  unsigned int height;
	  int bitmap_pad;
	  int bytes_per_line;

       unsigned long XGetPixel(ximage, x, y)
	  XImage *ximage;
	  int x;
	  int y;

       XPutPixel(ximage, x, y, pixel)
	  XImage *ximage;
	  int x;
	  int y;
	  unsigned long pixel;

       XImage *XSubImage(ximage, x, y, subimage_width, subimage_height)
	  XImage *ximage;
	  int x;
	  int y;
	  unsigned int subimage_width;
	  unsigned int subimage_height;

       XAddPixel(ximage, value)
	  XImage *ximage;
	  long value;

       XDestroyImage(ximage)
	   XImage *ximage;

Arguments
       bitmap_pad  Specifies the quantum of a scanline (8, 16, or 32).	In other words, the start of one scanline is separated in client memory
		   from the start of the next scanline by an integer multiple of this many bits.

       bytes_per_line
		   Specifies the number of bytes in the client image between the start of one scanline and the start of the next.

       data	   Specifies a pointer to the image data.

       depth	   Specifies the depth of the image.

       display	   Specifies the connection to the X server.

       format	   Specifies the format for the image.	You can pass or

       height	   Specifies the height of the image, in pixels.

       offset	   Specifies the number of pixels to ignore at the beginning of the scanline.

       pixel	   Specifies the new pixel value.

       subimage_height
		   Specifies the height of the new subimage, in pixels.

       subimage_width
		   Specifies the width of the new subimage, in pixels.

       value	   Specifies the constant value that is to be added.

       visual	   Specifies a pointer to the visual.

       width	   Specifies the width of the image, in pixels.

       ximage	   Specifies a pointer to the image.

       x
       y	   Specify the x and y coordinates.

Description
       The function allocates the memory needed for an structure for the specified display but does not allocate space for the image itself.
       Rather, it initializes the structure byte-order, bit-order, and bitmap-unit values from the display and returns a pointer to the structure.
       The red, green, and blue mask values are defined for Z format images only and are derived from the structure passed in.	Other values also
       are passed in.  The offset permits the rapid displaying of the image without requiring each scanline to be shifted into position.  If you
       pass a zero value in bytes_per_line, Xlib assumes that the scanlines are contiguous in memory and calculates the value of bytes_per_line
       itself.

       Note that when the image is created using or the destroy procedure that the function calls frees both the image structure and the data
       pointed to by the image structure.

       The basic functions used to get a pixel, set a pixel, create a subimage, and add a constant offset to a Z format image are defined in the
       image object.  The functions in this section are really macro invocations of the functions in the image object and are defined in

       The function returns the specified pixel from the named image.  The pixel value is returned in normalized format (that is, the least-sig-
       nificant byte of the long is the least-significant byte of the pixel).  The image must contain the x and y coordinates.

       The function overwrites the pixel in the named image with the specified pixel value.  The input pixel value must be in normalized format
       (that is, the least-significant byte of the long is the least-significant byte of the pixel).  The image must contain the x and y coordi-
       nates.

       The function creates a new image that is a subsection of an existing one.  It allocates the memory necessary for the new structure and
       returns a pointer to the new image.  The data is copied from the source image, and the image must contain the rectangle defined by x, y,
       subimage_width, and subimage_height.

       The function adds a constant value to every pixel in an image.  It is useful when you have a base pixel value from allocating color
       resources and need to manipulate the image to that form.

       The function deallocates the memory associated with the structure.

See Also
       XPutImage(3X11)
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

																XCreateImage(3X11)
All times are GMT -4. The time now is 03:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy