Click here to Skip to main content
15,898,374 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Public Property Pin
XGaMeS23-Apr-04 5:10
XGaMeS23-Apr-04 5:10 
GeneralVBScript Pseudo-Reflection(?) [modified] Pin
MStanbrook22-Apr-04 8:47
MStanbrook22-Apr-04 8:47 
GeneralRe: VBScript Pseudo-Reflection(?) Pin
Dave Kreskowiak22-Apr-04 23:44
mveDave Kreskowiak22-Apr-04 23:44 
GeneralRe: VBScript Pseudo-Reflection(?) Pin
MStanbrook26-Apr-04 5:20
MStanbrook26-Apr-04 5:20 
GeneralRe: VBScript Pseudo-Reflection(?) Pin
daluu21-Jan-11 21:09
daluu21-Jan-11 21:09 
Generalstring search in VB.NET Pin
pnpfriend22-Apr-04 8:14
pnpfriend22-Apr-04 8:14 
GeneralRe: string search in VB.NET Pin
Charlie Williams22-Apr-04 8:43
Charlie Williams22-Apr-04 8:43 
GeneralProblem saving Bitmap as Tiff Pin
rye0422-Apr-04 8:02
rye0422-Apr-04 8:02 
I'm having issues writing text to a tiff file. However I have no problems saving text to a Bitmap.

Here is an example of the code that works with Bitmap:

        Dim objBitmap As New Bitmap(600, 600)<br />
        Dim objTextBrush As New TextureBrush(objBitmap)<br />
        Dim objFont As New Font("Verdana", 20, FontStyle.Bold, GraphicsUnit.Pixel, 0)<br />
        Dim objGraphics As Graphics = Graphics.FromImage(objBitmap)<br />
<br />
        objGraphics.DrawString("Test Text", objFont, Brushes.Black, 0, 0)<br />
        objBitmap.Save("test.bmp")


This code works great! But I need to a way to write to tiff.

The code below should work but fails. It returns a black tiff image:

        Dim objBitmap As New Bitmap(600, 600)<br />
        Dim objTextBrush As New TextureBrush(objBitmap)<br />
        Dim objFont As New Font("Verdana", 20, FontStyle.Bold, GraphicsUnit.Pixel, 0)<br />
        Dim objGraphics As Graphics = Graphics.FromImage(objBitmap)<br />
<br />
        objGraphics.DrawString("Test Text", objFont, Brushes.Black, 0, 0)<br />
        objBitmap.Save("test.tiff", ImageFormat.Tiff)


Any help would be greatly appreciated. In return what I would like to do is build a C# class that will save text to an image in different formats and make it available for free. I have tried tools like CoolWatermark, but it has the same issue.


Ryan
ryan@edevers.com
Generalline chart - convert from c# to vb.net Pin
bsh1722-Apr-04 7:46
bsh1722-Apr-04 7:46 
GeneralComparing &quot;Similar&quot; Strings Pin
Todd Davis22-Apr-04 4:31
Todd Davis22-Apr-04 4:31 
GeneralRe: Comparing &quot;Similar&quot; Strings Pin
Dave Kreskowiak22-Apr-04 7:09
mveDave Kreskowiak22-Apr-04 7:09 
GeneralRe: Comparing &quot;Similar&quot; Strings Pin
PaleyX22-Apr-04 9:45
PaleyX22-Apr-04 9:45 
GeneralRe: Comparing &quot;Similar&quot; Strings Pin
RichardGrimmer26-Apr-04 4:08
RichardGrimmer26-Apr-04 4:08 
GeneralHiding menu Pin
tuningd22-Apr-04 4:29
tuningd22-Apr-04 4:29 
Generalcontrol box on form Pin
leezardd22-Apr-04 3:13
leezardd22-Apr-04 3:13 
GeneralRe: control box on form Pin
Ritesh Sompura22-Apr-04 4:33
Ritesh Sompura22-Apr-04 4:33 
GeneralWhy no error - Dim inside a loop Pin
wmccd22-Apr-04 2:58
wmccd22-Apr-04 2:58 
GeneralRe: Why no error - Dim inside a loop Pin
Ritesh Sompura22-Apr-04 4:40
Ritesh Sompura22-Apr-04 4:40 
GeneralRe: Why no error - Dim inside a loop Pin
Dave Kreskowiak22-Apr-04 7:14
mveDave Kreskowiak22-Apr-04 7:14 
GeneralApplying Style sheet(CSS) in Crystal report .net Pin
srieen22-Apr-04 1:42
srieen22-Apr-04 1:42 
GeneralStructures in VisualBasic. Pin
amardude22-Apr-04 0:45
amardude22-Apr-04 0:45 
GeneralRe: Structures in VisualBasic. Pin
Dave Kreskowiak22-Apr-04 7:23
mveDave Kreskowiak22-Apr-04 7:23 
GeneralRe: Structures in VisualBasic. Pin
amardude23-Apr-04 20:00
amardude23-Apr-04 20:00 
GeneralRe: Structures in VisualBasic. Pin
Dave Kreskowiak24-Apr-04 2:25
mveDave Kreskowiak24-Apr-04 2:25 
QuestionRetrieving a DataRow from a DataGrid??? Pin
Greg Eales21-Apr-04 23:32
Greg Eales21-Apr-04 23:32 

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.