Skip to content

Commit

Permalink
2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Aug 21, 2024
1 parent f227aae commit d254bfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ androidCompileSdk = "34"
jvmTarget = "17"
compose-compiler = "1.5.15"

libVersion = "2.2.1"
libVersion = "2.2.2"

composeColorfulSliders = "1.2.2"
paletteKtx = "1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import android.text.StaticLayout;
import android.text.TextPaint;
import android.util.Base64;
import android.util.TypedValue;

import androidx.core.content.res.ResourcesCompat;

Expand Down Expand Up @@ -67,10 +66,7 @@ public static Bitmap textAsBitmap(Context context, WatermarkText watermarkText)
watermarkPaint.setAlpha(watermarkText.getTextAlpha());
}

float value = (float) watermarkText.getTextSize();
int pixel = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
value, context.getResources().getDisplayMetrics());
watermarkPaint.setTextSize(pixel);
watermarkPaint.setTextSize((float) watermarkText.getTextSize());

if (watermarkText.getTextShadowBlurRadius() != 0
|| watermarkText.getTextShadowXOffset() != 0
Expand Down

0 comments on commit d254bfc

Please sign in to comment.