Click here to Skip to main content
15,907,396 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionExecute multiple Biztalk 2004 messages from .NET Pin
mittalpa5-Jun-06 19:07
mittalpa5-Jun-06 19:07 
Questionhow to display image description? [modified] Pin
mujin035-Jun-06 10:44
mujin035-Jun-06 10:44 
QuestionDifference between .net2.0 redist and IDE? Pin
Soundman32.24-Jun-06 22:46
Soundman32.24-Jun-06 22:46 
AnswerRe: Difference between .net2.0 redist and IDE? Pin
Ed.Poore7-Jun-06 12:05
Ed.Poore7-Jun-06 12:05 
QuestionLoading dynamic assembly. Pin
webC#4-Jun-06 18:51
webC#4-Jun-06 18:51 
AnswerRe: Loading dynamic assembly. Pin
Hesham Amin4-Jun-06 21:17
Hesham Amin4-Jun-06 21:17 
GeneralRe: Loading dynamic assembly. Pin
phanikumar.kanumilli5-Jun-06 23:36
phanikumar.kanumilli5-Jun-06 23:36 
Questiongdwrapper Pin
jkirkerx4-Jun-06 11:04
professionaljkirkerx4-Jun-06 11:04 
I downloaded the gdWrapper, and wrote some code to draw a part on the fly. I want to save the png file as a file, and I want to stuff the PngStream into a SQL Server Image Table Column.

The instructions for the gdwrapper are kind of vague, can't figure out what the call is for writing the file to the disk drive.

Here is what I have so far , This is my first time using JScript
I call the file 'RenderPart.asp'

<%@language=jscript%>

<%

//Gather all the data needed to make the drawing
//var TX = Request.QueryString("TX") * 3
//var TY = Request.QueryString("TY") * 3

//var AX = Request.QueryString("AX") * 3
//var AY = Request.QueryString("AY") * 3

//var BX = Request.QueryString("BX") * 3
//var BY = Request.QueryString("BY") * 3
//var BV = Request.QueryString("BV") * 3

//var CX = Request.QueryString("CX") * 3
//var CY = Request.QueryString("CY") * 3

//var JobNumber = Request.QueryString("JN")

var TX = 120
var TY = 90

var AX = 18
var AY = 44.7868
var BX = 39.2132
var BY = 45.2132
var BV = 30
var CX = 80.7868
var CY = 24
var JobNumber = "CF1"

// Write image/png header
Response.ContentType = "image/png";

// Set 'dynamic' content to expire immediately (depends on situation)
Response.Expires = -1000;

// Create variables
var gdImage = Server.CreateObject("GDLibrary.gdImage");

// Create a new paleted image in memory ... or ...
//gdImage.Create(250, 200);

//Calculate the image size if it gets real big
var CTX;
var CTY;
if(TX > 480) {
CTX = TX + 50;
} else {
CTX = 480;
}

if(TY > 320 ) {
CTY = TY + 40;
} else {
CTY = 320;
}

gdImage.Create(CTX, CTY);

// Add/Return RGB True Color values
var White = gdImage.ColorAllocate(255, 255, 255);
var Black = gdImage.ColorAllocate(0, 0, 0);
var Red = gdImage.ColorAllocate(255, 0, 0);
var Blue = gdImage.ColorAllocate(0, 0, 255);
var Green = gdImage.ColorAllocate(0, 255, 0);

//Calculate TotalBox First, Then Draw it
//gdImage.Rectangle(0, 0, TX, TY, Black);

//Caluclate PartB, then Draw it
//(sX, sY, fX, fY, color)
gdImage.Line(0, 0, 0, BY, Red); //Verrical
gdImage.Line(0, 0, BX, 0, Red); //Horzontal

gdImage.Line(0, BY, AX, BY, Red);
gdImage.Line(BX, 0, BX, CY, Red);
gdImage.Line(AX, BY, BX, CY, Red); //Vortex


//Calculate PartA Next, then draw it
//(sX, sY, fX, fY, color)
gdImage.Rectangle(0, BY, AX, AY+BY, Red);

//Calculate PartC, then Draw it
//(sX, sY, fX, fY, color)
gdImage.Rectangle(BX, 0, CX+BX, CY, Red);

// Label the Drawing now
//gdImage.Chars(gdImage.FontGetMediumBold(), 75, 10, "Horizontal Y-Axis", Black);
//gdImage.CharsUp(gdImage.FontGetMediumBold(), 460, 225, "Vertical X-Axis", Black);

//gdImage.Chars(gdImage.FontGetTiny(), AX / 4, (BY / 4), "Part B", Black);
//gdImage.Chars(gdImage.FontGetTiny(), AX / 4, AY, "Part A", Black);
//gdImage.Chars(gdImage.FontGetTiny(), (CX / 3) + BX, (BY / 4), "Part C", Black);

gdImage.Chars(gdImage.FontGetMediumBold(), 10, TY + 20, "Scale: 3 Pixels Per Inch", Black);
gdImage.Chars(gdImage.FontGetSmall(), 10, TY + 35, "Job Number: " + JobNumber, Black);

// Before output, if we want a Palleted Png (256 color), run the next command!
gdImage.TrueColorToPalette(false, 256);
// For Gradients, Dithering will help but increase the file size!

// Return a Png data stream
Response.BinaryWrite(gdImage.ToPngStream().Read);


gdImage = null;

%>


Questionselecting a row in datagrid Pin
Siva Myneni2-Jun-06 18:48
Siva Myneni2-Jun-06 18:48 
QuestionDataSet vs. DB query Pin
Rabbit172-Jun-06 9:07
Rabbit172-Jun-06 9:07 
AnswerRe: DataSet vs. DB query Pin
Stephan Samuel2-Jun-06 10:23
Stephan Samuel2-Jun-06 10:23 
AnswerRe: DataSet vs. DB query Pin
Guffa2-Jun-06 10:35
Guffa2-Jun-06 10:35 
QuestionMySQL Query help! Pin
Rabbit172-Jun-06 8:55
Rabbit172-Jun-06 8:55 
AnswerRe: MySQL Query help! Pin
Stephan Samuel2-Jun-06 10:16
Stephan Samuel2-Jun-06 10:16 
QuestionTesting user-interface Pin
Tomerland1-Jun-06 22:51
Tomerland1-Jun-06 22:51 
AnswerRe: Testing user-interface Pin
Ed.Poore2-Jun-06 6:25
Ed.Poore2-Jun-06 6:25 
AnswerRe: Testing user-interface Pin
Stephan Samuel2-Jun-06 6:43
Stephan Samuel2-Jun-06 6:43 
AnswerRe: Testing user-interface Pin
Jim Conigliaro2-Jun-06 8:37
Jim Conigliaro2-Jun-06 8:37 
GeneralRe: Testing user-interface Pin
Stephan Samuel2-Jun-06 10:25
Stephan Samuel2-Jun-06 10:25 
GeneralRe: Testing user-interface Pin
Tomerland19-Jun-06 2:42
Tomerland19-Jun-06 2:42 
QuestionRepaint a application [modified] Pin
Resolver181-Jun-06 19:11
Resolver181-Jun-06 19:11 
AnswerRe: Repaint a application [modified] Pin
Stephan Samuel2-Jun-06 6:00
Stephan Samuel2-Jun-06 6:00 
GeneralRe: Repaint a application [modified] Pin
Guffa2-Jun-06 6:32
Guffa2-Jun-06 6:32 
NewsRe: Repaint a application [modified] Pin
Resolver184-Jun-06 20:37
Resolver184-Jun-06 20:37 
QuestionProject location is not fully trusted Pin
hemrk1-Jun-06 6:01
hemrk1-Jun-06 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.