Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 5 of 5 total |
Image RepeatStyle |
Sun, Jun 3 2018 9:35 AM | Permanent Link |
Anthony | I'm trying to caputre a signature using the PaintSurface and save in a database for later recall as an Image.
I'm using the following code to load the image from the table Image1.BackGround.image.data := Table1.Columns['Signature'].AsString; Image1.Background.Image.SizeType := stContain; Image1.Background.Image.RepeatStyle := rsNone; However the ImageSize and RepeatStyle do not seem to be respected. Also is there a way of saving or converting the image in a standard image format for later retrieval. |
Mon, Jun 4 2018 3:09 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Anthony,
<< However the ImageSize and RepeatStyle do not seem to be respected. >> It's a bug. The hot fix is as follows: In the WebUI unit, replace these two methods: function TBackground.GetSizeStyle: String; begin if (FImage.Name <> '') or (FImage.Data <> '') then <<< Fixed begin case FImage.SizeType of stNone: Result:=CSS_VALUE_AUTO; stSpecified: Result:=PixelsToStr(FImage.Width)+SPACE+ PixelsToStr(FImage.Height); stContain: Result:=CSS_VALUE_CONTAIN; stCover: Result:=CSS_VALUE_COVER; else Result:=''; end; end else if HasGradient then Result:=CSS_VALUE_AUTO else Result:=CSS_VALUE_AUTO+SPACE+CSS_VALUE_AUTO; end; function TBackground.GetRepeatStyle: String; begin if (FImage.Name <> '') or (FImage.Data <> '') then <<< Fixed begin case FImage.RepeatStyle of rsBoth: Result:=CSS_VALUE_REPEAT; rsHorizontal: Result:=CSS_VALUE_REPEATX; rsVertical: Result:=CSS_VALUE_REPEATY; rsNone: Result:=CSS_VALUE_NOREPEAT; else Result:=''; end; end else if HasGradient then Result:=CSS_VALUE_NOREPEAT else Result:=CSS_VALUE_REPEAT; end; << Also is there a way of saving or converting the image in a standard image format for later retrieval. >> Sure, but you'll need to use a web module or other form of server-side processing in order to do so. Tim Young Elevate Software www.elevatesoft.com |
Wed, Jun 6 2018 5:44 AM | Permanent Link |
Anthony | Thanks Tim,
<<It's a bug. The hot fix is as follows:>> I assume this hotfix will make it into the next build? Also i'm trying to capture a signature, using the paint example as a template where issue also occurs. I can draw a sine wave in the paintsurface on a Windows tablet and on Android, but it turns into a jagged wave on iOS as the paint panel moves up and down when drawing on the iPad, is there any way to prevent this so that I can capture a smooth signature. Many thanks |
Thu, Jun 7 2018 4:25 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Anthony,
<< I assume this hotfix will make it into the next build? >> Yes, we *always* fix reported bugs, and the fix for this is in B15 that went out today. << I can draw a sine wave in the paintsurface on a Windows tablet and on Android, but it turns into a jagged wave on iOS as the paint panel moves up and down when drawing on the iPad, is there any way to prevent this so that I can capture a smooth signature. >> I'll check it out and let you know what I find out. Tim Young Elevate Software www.elevatesoft.com |
Mon, Jun 11 2018 5:17 PM | Permanent Link |
Anthony | Hi TIm,
<<I'll check it out and let you know what I find out.>> I have attached screenshots of my results on an iPhone Safari and an Android Chrome browser using the default paint example app. Attachments: ios-vs-android-paint.png |
This web page was last updated on Wednesday, April 17, 2024 at 10:35 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |