Hi, is it possible to scale dialog image? I want to use some image(444x312) as background to my dialog(250x300). Searching forums didn't really give me an answer (which probably means that I'm really bad at finding stuff, so if there already is a topic with solution to my problem please direct me to it).
But if it's not possible, would it mean that I would have to export desired image, manually scale it and import back?
Wouldn't Set dialog item size answer your question? Also, what kind of image are you using for background, if it's something frame-alike you could make it fit any dialog if you format it properly.
When you create a Dialog Item (Image), You can set the parameters of the Image size, you could have a 1080 x 860 image, But if you set it to 250x300 it will be re-sized automatically to that scale.
I may be doing it wrong, but "Assets\Textures\ui_campaignmenu_frame_bucket_mid.dds" doesn't want to resize automaticly.
Here's how the action looks like: "Dialog - Create an image for dialog DIALOG with the dimensions (300, 300) anchored to Center with an offset of (0, 0) setting the tooltip to "" using the image Assets\Textures\ui_camapaignmenu_frame_bucket_mid.dds as a Normal type with tiled set to true tint color White and blend mode Normal"
Woah, thank you very much! I just thought that I could ingore "tiled" when I'm not dealing with borders.. (I don't know what it means D:, feel so silly now).
Tiled = true: Image is not scaled, but will be shown multiple times (in multiple "tiles") until it fills the size, =false: Image will be scaled to match the size ;)
HI there
That exactly what i want to do.I have tried to scale image do that using this codeļ¼
namespace RETest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder());
But it can not work effectively.I want to know that if there is any image program which supports to do that directly.Thanks a lot
Hi, is it possible to scale dialog image? I want to use some image(444x312) as background to my dialog(250x300). Searching forums didn't really give me an answer (which probably means that I'm really bad at finding stuff, so if there already is a topic with solution to my problem please direct me to it).
But if it's not possible, would it mean that I would have to export desired image, manually scale it and import back?
Wouldn't Set dialog item size answer your question? Also, what kind of image are you using for background, if it's something frame-alike you could make it fit any dialog if you format it properly.
When you create a Dialog Item (Image), You can set the parameters of the Image size, you could have a 1080 x 860 image, But if you set it to 250x300 it will be re-sized automatically to that scale.
I may be doing it wrong, but "Assets\Textures\ui_campaignmenu_frame_bucket_mid.dds" doesn't want to resize automaticly.
Here's how the action looks like: "Dialog - Create an image for dialog DIALOG with the dimensions (300, 300) anchored to Center with an offset of (0, 0) setting the tooltip to "" using the image Assets\Textures\ui_camapaignmenu_frame_bucket_mid.dds as a Normal type with tiled set to true tint color White and blend mode Normal"
@uiasdnmb: Go
it doesn't, it just cuts image and as a result i just see top left part of image instead of full picture. How do I format it properly?
What do you think could this "tiled" probably mean? ;) (translation: Set it to false, please :D )
@Kueken531: Go
Woah, thank you very much! I just thought that I could ingore "tiled" when I'm not dealing with borders.. (I don't know what it means D:, feel so silly now).
@DuckyTheDuck: Go
Tiled = true: Image is not scaled, but will be shown multiple times (in multiple "tiles") until it fills the size, =false: Image will be scaled to match the size ;)
@Kueken531: Go
Ah, thank you again, I understnad it now =)
@DuckyTheDuck: Go
HI there That exactly what i want to do.I have tried to scale image do that using this codeļ¼ namespace RETest { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void button1_Click(object sender, EventArgs e) { string fileName = "c:/Sample.png";
REImage reImage = REFile.OpenImageFile(fileName);
ImageProcessing.ApplyResize(reImage, 0.5f);
REFile.SaveImageFile(reImage, "c:/reimage.png", new PNGEncoder()); But it can not work effectively.I want to know that if there is any image program which supports to do that directly.Thanks a lot
@Abigail111: Go
Uhm... I guess you are in the wrong place, your code looks like C#. :(