3 namespace SiliconStudio.TextureConverter.Requests
8 internal class FactorRescalingRequest : RescalingRequest
14 private float widthFactor;
19 private float heightFactor;
27 public FactorRescalingRequest(
float widthFactor,
float heightFactor, Filter.Rescaling filter) : base(filter)
29 this.widthFactor = widthFactor;
30 this.heightFactor = heightFactor;
33 public override int ComputeWidth(TexImage texImage)
35 return (
int)(texImage.Width * widthFactor);
38 public override int ComputeHeight(TexImage texImage)
40 return (
int)(texImage.Height * heightFactor);