Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic distortion of BackgroundImage, size? aliasing? (Read 2444 times)
mattj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Nov 9th, 2006
distortion of BackgroundImage, size? aliasing?
Nov 9th, 2006 at 1:11am
Print Post  

Hi there I am using an image from my resouces as a flowchart background as such:

flowChart.BackgroundImage = Properties.Resources.background2;

unfortunately it is rendering as slightly blurred in comparison to the original image, and when tiled it is not lining up correctly, any suggestions?

p.s. the image is a .png
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: distortion of BackgroundImage, size? aliasing?
Reply #1 - Nov 9th, 2006 at 6:26am
Print Post  
Hi,

FlowChart.NET honors the DPI attribute stored in the image metadata, and will stretch the image if its DPI is different than the screen DPI. The screen's resolution usually is 96 DPI; you can see what the resolution of the image is in the Summary\Advanced property page of the file.

Stoyan
  
Back to top
 
IP Logged
 
mattj2
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 9th, 2006
Re: distortion of BackgroundImage, size? aliasing?
Reply #2 - Nov 9th, 2006 at 11:33pm
Print Post  
Ok that seems to have fixed the image display when untiled, but when tiled it is now distorting in a similar fashion as before when using this code:

Code
Select All
flowChart.BackgroundImageLayout = ImageLayout.None;

flowChart.BkgrImagePos = ImageAlign.Tile; 



are these the correct layout parameters?

strange it requires 96 dpi for this background when all our other graphics are displaying fine as 72 dpi PNGs
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: distortion of BackgroundImage, size? aliasing?
Reply #3 - Nov 10th, 2006 at 6:04am
Print Post  
I'm not sure what BackgroundImageLayout does, I guess it's something that comes from the Control class.

Could you email me that image so I can see what exactly happens?

By other graphics - do you mean ones displayed in boxes? The box images are just stretched to the box BoundingRect size, so their DPI setting is ignored.

Stoyan
  
Back to top
 
IP Logged
 
mattj2
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 9th, 2006
Re: distortion of BackgroundImage, size? aliasing?
Reply #4 - Nov 15th, 2006 at 3:03am
Print Post  
I have emailed you a screen grab stoyo.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint