how to examine the current Imagesize [downsampling]

  • Hello,

    if i have a tablecell that contains one image, WPTools does scale the image so it it has a correct size. if i resize the Cell the image is displayed well with respect to the new size.

    if i save that file (RTF) and open it in MS Word then i can see that word does'nt scale the image but cut it on cell boundaries (what a stupid program zzz)

    my idea was to scale the image itself so that it's Rectangle meets the current cell size.

    But where can i read that current cell Size?

    best regards
    Michael

    • Offizieller Beitrag

    Hi,

    Scaling the image can be done by changing TextObj.W and TextOb.H.

    But I understood from your telefone call You want to downsample the image to produce a smaller file.

    The processing of the image can be done in event PrepareImageforSaving:

    JPEG Downsampling:

    Regards,

    Julian

  • Julian,

    thank you very much. Now the Pictures are displayed in word as they should.

    it would be nice if i could have a TWPTextObj.DisplayWidth and TWPTextObj.DisplayHeight property for such cases

    Thank you again

    regards
    Michael