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
 Why calling PixelFormat gives error in IE 6.2.1

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
yogiyang Posted - Aug 15 2016 : 08:16:47
Hello,

I am trying to use the following code to set up ImageEnVect.

var
  iImgWidth, iImgHeight: Integer;
const
  DPI = 200;
begin
  iImgWidth := iImgWidth;
  iImgHeight := iImgHeight;
  iImgWidth := iImgWidth * DPI;
  iImgHeight := iImgHeight * DPI;

  ievMain.Proc.ImageResize(iImgWidth, iImgHeight, iehLeft, ievTop);
  ievMain.Proc.Fill(clWhite);
  ievMain.IO.Params.Dpi := DPI;
  ievMain.ChangeResolution(DPI, rfBicubic);

  ievMain.Bitmap.PixelFormat := pf24bit; // <-- This line raises Error!

  ievMain.Layers[0].Locked := True;
  ievMain.Layers[0].Selectable := False;
  ievMain.Update;

I have attached demo project also for testing.

TIA

attach/yogiyang/201681581635_SetPixelFormat.zip
6.4 KB


Yogi Yang
2   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Aug 16 2016 : 11:47:53
Hello Nigel,

Thanks for the tip.



Yogi Yang
xequte Posted - Aug 15 2016 : 21:42:13
Hi Yogi

You should always use ievMain.IEBitmap. Bitmap is for legacy support only.

Also, ensure ievMain.LegacyBitmap = False.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com