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
 IElayerMview size

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
pierrotsc Posted - May 29 2019 : 13:11:04
I am trying to show the pixels dimensions of the image not the layer dimensions. When i switch the option to imagedimension in the component, i still get the layer dimension.
Advice
4   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - Jun 04 2019 : 20:42:55
i think it is working now. not sure what i did but i got what i wanted. thanks for checking.
xequte Posted - Jun 04 2019 : 17:30:24
Hi

Did you call Update after changing the text properties?

Can you give me the steps to reproduce?


Nigel
Xequte Software
www.imageen.com
pierrotsc Posted - May 30 2019 : 16:05:09
No , what i am saying is that changing the properties to iedtnone for example in all 3 fields does not modify anything. the size and layername always show. it looks like if i set the autoadaptstyle to false, it is now working. Something weird was happening in the ielayermview component.
w2m Posted - May 30 2019 : 15:56:39
procedure TForm1.ImageEnLayerMView1GetTextEx(Sender: TObject; Index: Integer;
  Position: TIEMTextPos; var Text: WideString; Font: TFont;
  var BackgroundStyle: TBrushStyle; var BackgroundColor: TColor;
  var TruncSide: TIEMTruncSide);
begin
  if (Index <> -1) and (Index < ImageEnLayerMView1.ImageCount) then
  begin
    if Assigned(cxPageControl1.ActivePage) then
    begin
      ImageEnView := TImageEnView(cxPageControl1.ActivePage.Controls[0]);
      if Assigned(ImageEnView) and (Index <> -1) and
        (ImageEnLayerMView1.ImageCount = ImageEnView.LayersCount) then
      begin
        if Position = iemtpTop then
        begin
          Font.Style := [fsBold];
          Text := 'Kind: ' + GetLayerKindStr(ImageEnView) + '     ';
          Text := Text + 'Name: ' + ImageEnView.Layers[index].Name;
        end
        else
        begin
          Font.Style := [];
          Text := 'Layer Width: ' + IntegerToString
            (ImageEnView.Layers[index].Width) + '     ';
          Text := Text + ' Layer Height: ' + IntegerToString
            (ImageEnView.Layers[index].Height) + '     ';
          Text := Text + ' Width: ' + IntegerToString
            (ImageEnView.Layers[index].Bitmap.Width) + '     ';
          Text := Text + ' Height: ' + IntegerToString
            (ImageEnView.Layers[index].Bitmap.Height);
        end;
      end;
    end;
  end;
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development