trichview.com

trichview.support




Re: Image Resize


Return to index


Author

Message

Á¤º´¿Á

Posted: 05/07/2002 12:23:31


i'm registered user.


thanks....


"Sergey Tkachenko" <svt@trichview.com> wrote in message

news:3cd7aa4c@support.torry.net...

> Size adjustment is available for standard implementation of metafiles, bmp

> and jpeg.

> It is not available for icons.

> There are several different gif implementations, you can test them

yourself.

>

> This code scales the current image (in the position of caret) to 100 x

100:

>

>

> // minimal code:

> if rve.CurItemStyle in [rvsPicture, rvsHotPicture] then

> begin

>   RichViewEdit1.SetCurrentItemExtraIntProperty(rvepImageHeight, 100,

False);

>   RichViewEdit1.SetCurrentItemExtraIntProperty(rvepImageWidth, 100, True);

> end;

>

>   OR

>

> // if you want these operations to be undone as one operation:

> if rve.CurItemStyle in [rvsPicture, rvsHotPicture] then

> begin

>   MyRichViewEdit.BeginUndoGroup(rvutModifyItem);

>   MyRichViewEdit.SetUndoGroupMode(True);

>   RichViewEdit1.SetCurrentItemExtraIntProperty(rvepImageHeight, 100,

False);

>   RichViewEdit1.SetCurrentItemExtraIntProperty(rvepImageWidth, 100, True);

>   MyRichViewEdit.SetUndoGroupMode(False);

> end;

>

> PS: for other readers: this code requires a last version which is

currently

> available only for registered users.

>

>

> > I'm read readme.txt.(version 1.6.31)

> > I read.

> > can do image resizing from program code.

> >

> >

> > but , Do not know how do.

> > or bmp, jpg, gif image want to know whether all size adjustments are

> > available.

> >

> > Demo that I receive is no image adjustment example.

> >

> > teach me...  please....

> >

> >

> > And, Feel grateful always on your wholehearted reply.

> > Thanks, Sergey Tkachenko

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter