Sponsored Content
Full Discussion: oops! Style Manager
Top Forums UNIX for Dummies Questions & Answers oops! Style Manager Post 11825 by kristy on Wednesday 12th of December 2001 03:05:46 PM
Old 12-12-2001
Data oops! Style Manager

Solaris 2.6, using CDE:

agh. I accidentally set an ugly palette as my Home Session. The problem is, when I change the palette back to Default, I am informed that my change will be apparent in my next session. But when I log out and in, it's still the Ugly Palette. Doesn't matter if I set the Style Manager Startup as Resume Current Session or return to Home (since I accidentally set Home to Ugly). Is there a file I can modify to set the Home Session back to the Default palette?

Thanks,
kristy
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

oops on mount

When ever i mount any of my 2 scsi cdroms, I get a kernel crash with the folfollowing oops kernel output. I understand that it is impossible to anwser my question WHY but could you give me some advice where i should look to debug the problem or advice me some tools to detect what might be... (3 Replies)
Discussion started by: progressdll
3 Replies

2. Solaris

Modify Style Manager programmatically

My Java application runs on SunOS 5.8. Our use of a 3rd party class requires us to modify the Style Manager-Window setting "Allow Primary Windows On Top" - the default for this is on, we need to turn it off. Is there any way for our application, or our installation, to modify this setting? We... (0 Replies)
Discussion started by: ped52
0 Replies

3. Solaris

oops...accidentally overwrote postfix aliases file

I have directory/dns server running sparc solaris 9. while troubleshooting another issue, i overwrote the aliases file on accident. my question is: is there any way to revert this? any help super appreciated...especially since this a production box! (2 Replies)
Discussion started by: JeepResQ
2 Replies

4. Programming

Oops

Hi All, Can any one please differenciate between the Data Abstraction and Encapsulation? If possible, with code. Thanks in Advance, Naga:cool: (2 Replies)
Discussion started by: Nagapandi
2 Replies

5. Ubuntu

500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp

I've been tearing my hair out over this: vsftp does not work on any of my RedHat Server 5.x systems - I keep getting a variation on 500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp or 500 OOPS: cannot locate user entry:nobody (different errors on different systems). I spent... (2 Replies)
Discussion started by: thomn8r
2 Replies

6. Solaris

CDE Style Manager

How would one go about adding or removing the applications (keyboard, mouse, beep, screen, etc) from CDE's style manager (/usr/dt/bin/dtstyle)? running solaris 5.10 (4 Replies)
Discussion started by: eddiet
4 Replies

7. UNIX for Dummies Questions & Answers

chmod 777 * - oops

I can belive I really did this... chmod 777 /home :eek: I have my /home directory synced to another machine. Can anyone tell me how to get the permissions from back up server /home to production server /home It's important that I dont over write the files on the... (1 Reply)
Discussion started by: shunter63
1 Replies

8. Linux

500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp

I've been fighting this for about a year: vsftp does not work on any of my RedHat Server 5.x systems - I keep getting a variation on 500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp or 500 OOPS: cannot locate user entry:nobody (different errors on different systems). I spent... (0 Replies)
Discussion started by: thomn8r
0 Replies

9. Programming

Problem about Kernel oops

hello,everyone,I'm reading LDD3.Topics about oops,it said the code bellow would cause a fault condition because "this method copies a string to a local variable,unfortunately,the string is longer than the destination array".Well,hard to understand....Is that right?I thought the fault should be... (1 Reply)
Discussion started by: homeboy
1 Replies
IMAGETRUECOLORTOPALETTE(3)						 1						IMAGETRUECOLORTOPALETTE(3)

imagetruecolortopalette - Convert a true color image to a palette image

SYNOPSIS
bool imagetruecolortopalette (resource $image, bool $dither, int $ncolors) DESCRIPTION
imagetruecolortopalette(3) converts a truecolor image to a palette image. The code for this function was originally drawn from the Indepen- dent JPEG Group library code, which is excellent. The code has been modified to preserve as much alpha channel information as possible in the resulting palette, in addition to preserving colors as well as possible. This does not work as well as might be hoped. It is usually best to simply produce a truecolor output image instead, which guarantees the highest output quality. PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $dither - Indicates if the image should be dithered - if it is TRUE then dithering will be used which will result in a more speckled image but with better color approximation. o $ncolors - Sets the maximum number of colors that should be retained in the palette. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Converting a true color image to a palette-based image <?php // Create a new true color image $im = imagecreatetruecolor(100, 100); // Convert to palette-based with no dithering and 255 colors imagetruecolortopalette($im, false, 255); // Save the image imagepng($im, './paletteimage.png'); imagedestroy($im); ?> NOTES
Note This function requires GD 2.0.1 or later (2.0.28 or later is recommended). PHP Documentation Group IMAGETRUECOLORTOPALETTE(3)
All times are GMT -4. The time now is 11:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy