ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem Palette Color in Save as PCX

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
zavf Posted - Jan 23 2019 : 08:44:48
Hi

When Save bmp to PCX with xnShell then output file color palette its ok but when use ImageEn to Convert bmp to Pcx then color palette its not correct same as source file






Use this Code for Load

  // Don't use Windows Bitmaps
  ImageEnView1.LegacyBitmap := False;

  // Load images in native format
  ImageEnView1.IO.NativePixelFormat := true;

  with ImageEnView1.IO do
    LoadFromFileAuto( ExecuteOpenDialog());

  // if the bitmap is not 8 bit paletted then convert it
  if ImageEnView1.IEBitmap.PixelFormat <> ie8p then
    ImageEnView1.IEBitmap.PixelFormat := ie8p;

  ShowPalette;




and Save PCX

ImageEnView1.IO.Params.BitsPerSample := 8;
ImageEnView1.IO.Params.SamplesPerPixel := 1;
ImageEnView1.IO.SaveToFilePCX('D:\image.pcx');


Thanks
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 27 2019 : 17:42:21
Hi

ImageEn does not sort colors when saving. Can you advise how you would use this functionality?



Nigel
Xequte Software
www.imageen.com
zavf Posted - Jan 25 2019 : 19:05:49
new problem with color Table

When Image Resample/Resize then color table miss , its mean image show find as source but color table index miss with source image
@xequte Please this Sample and open Teset.bmp then click button "Half Bmp" then Compare Image Color Teset.bmp with hhhalf.bmp in photoshop / xnview (Ctrl+M)

Thanks

Teset.bmp


hhhalf.bmp




attach/zavf/2019125185928_Prj.zip
3007.82 KB
zavf Posted - Jan 25 2019 : 05:15:37
Thanks
Yes Pcx file has 10 Color and similar bmp but in photoshop /XnView Color Table Show Some Colors has dont use in image but xnShell Convert PCX only output used color in pcx file and color table with source image has Equals

my problem in PCX Color Table has Show Unused Color has dont in bmp file
xequte Posted - Jan 24 2019 : 22:15:23
Hi

The demo works as I would expect. I load "50.100 S bahar.bmp" which has 10 colors and save to "image.pcx". When I reload "image.pcx" it still has 10 colors.


Nigel
Xequte Software
www.imageen.com
zavf Posted - Jan 24 2019 : 16:51:02
@xequte Thanks
attached prj and graphic bmp sample

attach/zavf/2019124165027_Palette.zip
1953.25 KB
xequte Posted - Jan 23 2019 : 17:23:53
Hi

You are downsampling the image to 256 colors if it is not 256 colors. Is the source image 256 colors? Please attach it.



Nigel
Xequte Software
www.imageen.com