Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Helper Routine GetRect¶ Calculates the area of a scaled down page:

static XRect GetRect(int index)
{
  XRect rect = new XRect(0, 0, A4Width / 3 * 0.9, A4Height / 3 * 0.9);
  rect.X = (index % 3) * A4Width / 3 + A4Width * 0.05 / 3;
  rect.Y = (index / 3) * A4Height / 3 + A4Height * 0.05 / 3;
  return rect;
}
static double A4Width = XUnit.FromCentimeter(21).Point;
static double A4Height = XUnit.FromCentimeter(29.7).Point;
Comment

PREVIOUS NEXT
Code Example
Csharp :: SendFileAsync discord 
Csharp :: virtual list entity framework 
Csharp :: clickable table row asp.net core cursor 
Csharp :: jittery movement unity 
Csharp :: C# how to search textfile and append 
Csharp :: c# datatable column alias 
Csharp :: c# regex double of some letters only 
Csharp :: c# get or create firewall inbound rule ports 
Csharp :: backcolor app winform C3 
Csharp :: #StopRape 
Csharp :: c# Difference Array | Range update query in O(1) 
Csharp :: c# nunit initialize variables 
Csharp :: scroll two divs simultaneously site:stackoverflow.com 
Csharp :: search list for words c# 
Csharp :: console.out 
Csharp :: c# load a file into binary buffer 
Csharp :: c# deeply related children 
Csharp :: SonarQube UnitTests 
Csharp :: convert physical path to virtual path in c# 
Csharp :: how to get odd saturday in a month in c# 
Csharp :: wpf string to byte array 
Csharp :: .Net Entity Framework Reseed SQL Server Table ID Column 
Csharp :: how to make a 2d character move in unity 2020 
Csharp :: c# download image from url 
Csharp :: go down a line in <summary dotnet 
Csharp :: c# generate random key with specified length 
Csharp :: c# servercertificatevalidationcallback 
Csharp :: c# compare 2 binary files 
Csharp :: c# switch expression 8.0 
Csharp :: unity roam, chase, attack states 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =